Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Twitter poll about defer
func foo(func f()) {
defer fmt.Println("bye")
f()
}
func bar(func f()) {
f()
fmt.Println("bye")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment