3 ms·
The ScopeGuard RAII destructor will be called at the end of the scope, but Go's defer will be called at the end of the function. e.g. in Go can you can defer i
by mappu 9y ago
The ScopeGuard RAII destructor will be called at the end of the scope, but Go's defer will be called at the end of the function.
e.g. in Go can you can defer inside a for loop.