4 ms·
... To be concrete, you have to remember to use "defer" in Go to clean up resources and locks, ... You should probably be using defer() all the time anyway, un
by ansible 13y ago
... To be concrete, you have to remember to use "defer" in Go to clean up resources and locks, ...
You should probably be using defer() all the time anyway, unless you have a good reason not to. It also helps with code evolution, in the cases where some yahoo adds a new return statement in the middle of a function.