Error checking in examples/writing-files #124
muyiwaolurin
commented
Jul 22, 2016
Hi @calmh, It might be leave defer f.Close() after opening a file. Its one of the Golang ways
calmh
commented
Jul 23, 2016
No. Not when writing to a file. The error checking in this example is frankly embarrassing, but I think this project has been abandoned.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This corrects and comments a number of small issues around the error
checking in this example.