▲ 5 ▼ 5 More Gotchas and Tricks of Defer in Go — Part III
What is inside?
- 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
Register to comment or vote on this story