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.

Revisions

  1. dhruvr created this gist Sep 21, 2019.
    6 changes: 6 additions & 0 deletions Close.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    func Close(r *os.File) {
    err := r.Close()
    if err != nil {
    logger.Errorn("Problem while closing the connection", err)
    }
    }