Skip to content
Navigation menu
Search
Powered by Algolia
Search
Log in
Create account
DEV Community
Close
#
defer
Follow
Hide
Posts
Left menu
👋
Sign in
for the ability to sort posts by
relevant
,
latest
, or
top
.
Right menu
Avoid defer in Go loops to release resources per iteration instead of holding them until function return
Viktor Logvinov
Viktor Logvinov
Viktor Logvinov
Follow
Dec 1
Avoid defer in Go loops to release resources per iteration instead of holding them until function return
#
go
#
defer
#
resources
#
memory
Comments
Add Comment
11 min read
Moderation
👋
Sign in
for the ability to sort posts by
relevant
,
latest
, or
top
.
We're a place where coders share, stay up-to-date and grow their careers.
Log in
Create account