Skip to content

Instantly share code, notes, and snippets.

@dhruvr
Created September 21, 2019 21:30
Show Gist options
  • Save dhruvr/08a9ee0b81729709fb8e96c819b82b09 to your computer and use it in GitHub Desktop.
Save dhruvr/08a9ee0b81729709fb8e96c819b82b09 to your computer and use it in GitHub Desktop.
Close method for closing file
func Close(r *os.File) {
err := r.Close()
if err != nil {
logger.Errorn("Problem while closing the connection", err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment