Skip to content

Instantly share code, notes, and snippets.

@andriybuday
Last active September 13, 2020 21:55
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 andriybuday/807bfbb6594bd95cc827d37cee8db3dd to your computer and use it in GitHub Desktop.
Save andriybuday/807bfbb6594bd95cc827d37cee8db3dd to your computer and use it in GitHub Desktop.
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