Go-Tip

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.

A demo-friendly web server

Or: don't hard-code your demo server port to 8080. Let it choose the next available port instead.

Domains for local dev servers

Instead of accessing your local dev servers through different port numbers, use Caddy to access them through separate domains.

3 Go anti-patterns

Don't do this or you must go to bed without committing your code.

Containers from scratch?

Containers manage binaries and their supporting libs. Pure Go binaries don't need any external libs. Is the `scratch` image the right choice?