Skip to content

Instantly share code, notes, and snippets.

@MortenDHansen
Created January 21, 2017 16:56
Show Gist options
  • Save MortenDHansen/4c54fca25bb46896df816ac27683b800 to your computer and use it in GitHub Desktop.
Save MortenDHansen/4c54fca25bb46896df816ac27683b800 to your computer and use it in GitHub Desktop.
Golang error checker with err output
func checkError(err error) {
if err != nil {
fmt.Println("CRAP, Fuck me... And error occured... ", err.Error())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment