Created
October 12, 2016 20:40
-
-
Save mlowicki/38bdb4dddc431a577171b56b79675480 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func f() { | |
fmt.Println("1") | |
defer func() { | |
fmt.Println("Inside deferred function") | |
}() | |
fmt.Println("2") | |
panic("boom!") | |
fmt.Println("3") | |
} | |
func main() { | |
f() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment