Wait for a batch of goroutines using sync.WaitGroup.
Author: chris
Fan-in pattern: workers push results onto a channel.
Recursively walk a path with filepath.WalkDir (Go 1.16+).
Sort a slice of structs with sort.Slice and a less func.
Compile a regex and pull every match out of a string.
Compute a SHA256 digest with the crypto/sha256 stdlib.
Encode and decode structs with the encoding/json stdlib.
Make an HTTP GET with net/http and read the body.
Atomically write bytes to disk with os.WriteFile.
Read an entire file into memory with os.ReadFile.