Git notes
Recommended git configurations and other tips.
Recommended git configurations and other tips.
The "functional options" pattern in Go is very silly. Here's an easier alternative.
If you need multiple goroutines to wait for the same thing, use a done channel.
What's the right way to handle errors in the main function?
Python has a handy for/else construction. Go has an equivalent.
This page collates some strategies I've found useful when testing Go programs.