Comment by lowmagnet
1 day ago
You can start a new scope with `{}` in go. If I have a bunch of temp vars I'll declare the final result outside the braces and then do the work inside. But lately days I'll just write a function. It's clearer and easier to test.
No comments yet
Contribute on Hacker News ↗