Hi!
I published a new post! 5 Gotchas of Defer in Go — Part I.
I’ve 20 gotchas of defer in my queue, this is the first part. Protect yourself from basic defer gotchas.
In the article I’m talking about:
- Deferred nil func
- Defer inside a loop
- Defer as a wrapper
- Defer in a block
- Deferred method gotchas
Click here to read the new article.
My twitter: @inancgumus.
I’m creating an online course for Go: Join to my newsletter.