Skip to content

Instantly share code, notes, and snippets.

@tomtsang
Created February 7, 2018 06:22
Show Gist options
  • Save tomtsang/d0c380658e2030f551cdd82f71e8ebf0 to your computer and use it in GitHub Desktop.
Save tomtsang/d0c380658e2030f551cdd82f71e8ebf0 to your computer and use it in GitHub Desktop.
golang-err-pattern3
if err := file.Chmod(0664); err != nil {
fmt.Println(err)
return err
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment