3 ms·
defer gets executed at the end of the current function
by assbuttbuttass 2y ago
defer gets executed at the end of the current function
- spease 2y agoThanks! Not a Go programmer, so I saw the parentheses after the cloaure def and assume it translated to “execute this on a goroutine in the background immediately”