Skip to content

Instantly share code, notes, and snippets.

@NobodysNightmare
Created February 6, 2017 07:50
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 NobodysNightmare/9dcc436ff55c48721be273d02d156a5a to your computer and use it in GitHub Desktop.
Save NobodysNightmare/9dcc436ff55c48721be273d02d156a5a to your computer and use it in GitHub Desktop.
// from https://blog.golang.org/defer-panic-and-recover
func c() (i int) {
defer func() { i++ }()
return 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment