Wrap errors with fmt.Errorf %w and inspect with errors.Is / As.
Language: Go
Open a database/sql handle to Postgres and query rows.
Spin up a net/http server with a JSON-returning handler.
Parse typed CLI flags using the stdlib flag package.
Wait for a batch of goroutines using sync.WaitGroup.
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.