▲ 3 ▼ The power of defer in Go: on entry
Here is a small tip I wish I would have learned earlier when I started coding with Golang: using defer in both the start and exit of any function.
Register to comment or vote on this story
Here is a small tip I wish I would have learned earlier when I started coding with Golang: using defer in both the start and exit of any function.