5 More Gotchas and Tricks of Defer in Go — Part III

Hi!

:fire: 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

:point_right: Click here to read the new article.

:bird: My twitter: @inancgumus.
:fire: I’m creating an online course for Go: Join to my newsletter.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.