Defer in Go – how I started
For Go learners: What is that damn defer supposed to mean everywhere in Go code? If you’re a Go newbie like me and you have to jump in at the deep end and read “real” Go code, you’re constantly surprised by language features you don’t know yet. Fortunately, they’ve always been nice surprises so far. One of the Go features that surprised me is introduced by the keyword defer, which can precede a function call.
[Mehr]