This small site is oriented to developers learning golang that want to see the unexpected, at least for a newcomer, behaviors in the language.
This examples expect that reader is familiar with the language, if you’re not familiar with it, you should complete the Go by Example tutorial.
The WIP list of examples is (with no specific order):
nilerrors that are non-nil
time.RFC3339constant is not a valid
init()in testable examples
Write(byte) (int, error)should not retain the slice
if err := recover(); err != nildoes not recover from all panics
- There’s no
Min(int, int)int function
- Goroutines on
Grab some popcorn
This examples are not trying to prove that golang is wrong, it’s just sharing stuff that someone who has just started learning the language doesn’t expect.