Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
skybrian
· 4y ago · 0 comments
...of the function? You could append to a slice, after setting up a defer to free everything in the slice.
...of the loop? Call a function.
Comments
[–]
meithecatte
4y ago
...or just make defer run at the end of the scope.