Error checking in examples/writing-files #124

Open
wants to merge 1 commit into
from

2 participants

@calmh

This corrects and comments a number of small issues around the error
checking in this example.

@calmh calmh Error checking in examples/writing-files
This corrects and comments a number of small issues around the error
checking in this example.
6f34126
@muyiwaolurin

Hi @calmh, It might be leave defer f.Close() after opening a file. Its one of the Golang ways

@calmh

No. Not when writing to a file. The error checking in this example is frankly embarrassing, but I think this project has been abandoned.

@muyiwaolurin

wow!! I didn't know that. Thanks @calmh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment