← Back to blog

Six Go Gotchas the Compiler Won't Catch

Six Go patterns that compile cleanly and quietly do the wrong thing: loop capture, typed nil, slice aliasing, shadowed err, defer in a loop, and range copies.

Written by Denys Dovzhenko