Skip to content

Instantly share code, notes, and snippets.

@jgrahamc
Created July 2, 2015 14:07
Show Gist options
  • Save jgrahamc/385dd805a1b2276e3a37 to your computer and use it in GitHub Desktop.
Save jgrahamc/385dd805a1b2276e3a37 to your computer and use it in GitHub Desktop.
func doMightError() (err error) {
if err = doFirst(); err != nil {
return
}
if err = doSecond(); err != nil {
return
}
if err = doThird(); err != nil {
return
}
moreStuff()
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment