Last active
September 13, 2020 21:55
-
-
Save andriybuday/807bfbb6594bd95cc827d37cee8db3dd 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
func main() { | |
a := 4 | |
defer fmt.Println(a) | |
defer fmt.Println(3) | |
fmt.Println(1) | |
fmt.Println(2) | |
a = 5 | |
// this prints 1, 2, 3, 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment