Hacker News new | ask | show | jobs
by __david__ 4817 days ago
Ah! Thanks! I had seen panic/recover but hadn't caught "defer". That will make my code much better.
2 comments

"defer" is 50% of the reason I use Go. Open some resource, then defer close it the next line and move on. No more giant, nested try/finally blocks.
In addition to defer, Go actually does have goto.