go gotchas

Recently I have been doing a load of interviews. During one of those, the CTO wanted to assess whether I had adapted to the Go syntax or the language and I enjoyed the thinking about what I would call them “gotchas” from the Go language. Some of them I had no clue about and then some of the “gotchas” I did not the full details about the “gotcha” however, I had a vague understanding about them. I thought it would be a good idea to read up more about the various Go “gotchas” and try to learn a bit more about them and then write it up on my blog for future reference if I needed to refer back to them in the future.


  1. Increment (++) and Decrement (–) Operations