Add f.Close() when needed
makew0rld opened this issue · comments
makeworld commented
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