Hi!
I published a new post! 5 More Gotchas and Tricks of Defer in Go — Part III.
In the article I’m talking about:
- Calling recover outside of a deferred func
- Calling defer in the wrong order
- Not checking for errors
- Releasing the same resource twice
- panic/recover can get and return any type
Click here to read the new article.
My twitter: @inancgumus.
I’m creating an online course for Go: Join to my newsletter.