makew0rld / gemget

Command line downloader for the Gemini protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add f.Close() when needed

makew0rld opened this issue · comments

For the files being saved, but also for the input file. It will need to be closed before things like fatal are called.

https://stackoverflow.com/questions/27629380/how-to-exit-a-go-program-honoring-deferred-calls