arbrix / go.wtfs

Go is a powerful and simple programming language, but could surprise experienced programmer coming from different language or just a beginer. Let's review some common wtfs :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go.wtfs

Go is a powerful and simple programming language, but could surprise experienced programmer coming from different language or just a beginer. Let's review some common wtfs :)

In this tutorial we review following issues:

  • Vriable shadowing
  • Writing to nil map
  • Iterating through the map variable (map shuffle)
  • In array function?
  • Switch and fallthrough
  • How to peroperly close http response
  • Closures and loop variables
  • Addressing objects in maps
  • Cricular package import

Inspiration is taken from: http://devs.cloudimmunity.com/gotchas-and-common-mistakes-in-go-golang/

About

Go is a powerful and simple programming language, but could surprise experienced programmer coming from different language or just a beginer. Let's review some common wtfs :)


Languages

Language:Go 100.0%