Spotlights

Short tips, essays, and news about working with Go and software development.

Range-Over-Func In A Nutshell

The new iterator functions in Go 1.23 replace an unwieldy loop construct with the familiar range syntax. Here is how.

6 repos that help you get better in Go

What's better than learning by inspecting real code? These repositories can help you transition from 'I know Go' to 'I understand how to use Go'.

Concurrency and pointers

Passing values through channels is fine, but beware of passing (hidden) pointers between goroutines.

Don't check in go.work

The go.work file manages local redirects of remote modules. It's specific to your machine, so don't add it to the repository.