Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func main() {
- defer fmt.Println("first")
- fmt.Println("second")
- fmt.Println("third")
- defer func() {
- fmt.Println("func first")
- }()
- func() {
- fmt.Println("func second")
- }()
- func() {
- fmt.Println("func third")
- }()
- }
- // Ouput
- /*second
- third
- func second
- func third
- func first
- first*/
Advertisement
Add Comment
Please, Sign In to add comment