TLDR Web Dev · QUICK LINKS
DON'T DEFER CLOSE() ON WRITABLE FILES
Summary from the TLDR Web Dev newsletter
Deferring the `Close()` method for writable files in Go can be harmful because it ignores the potential error return value.
TLDR Web Dev · QUICK LINKS
Deferring the `Close()` method for writable files in Go can be harmful because it ignores the potential error return value.