Sections

  • Principles
  • Reliability
  • Architecture
  • Algorithms
  • Applications
  • Tech
  • Blog
  • Cheat Sheets

Pages

  • Golang
  • Golang Recipes
  • Golang Gotchas
  • Java
  • Bash
  • Javascript
  • Software Languages
  • API Development

BreadCrumbs

  • /Michael Knapp's Home Page
  • /Tech

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.

Last Modified: March 31, 2023
© 2023 Michael Knapp