Golang Gotchas This section covers some of the most perplexing and common mistakes made in Golang. SubPages Checking for Nil: Programmers get baffled when a variable is considered not nil and then promptly panics because it is nil. Iterating Over Values: Iterating over values can lead to surprising results. Mutating Collections: You might be surprised by the results of a function mutating a collection.