Skip to content

Instantly share code, notes, and snippets.

@jgrahamc
Created July 2, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgrahamc/95a78bfbdbd46e558a95 to your computer and use it in GitHub Desktop.
Save jgrahamc/95a78bfbdbd46e558a95 to your computer and use it in GitHub Desktop.
func doMightError() (err error) {
switch {
case !doFirst(&err):
case !doSecond(&err):
case !doThird(&err):
default:
moreStuff()
}
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment