GitBucket
4.23.0
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
sample-golang
/
01_hello
Browse code
add defer sample
master
1 parent
3616ed6
commit
ca243a531267c7db8bf513bf7145f1cce66170b1
yhornisse
authored
on 20 Sep 2021
Patch
Showing
1 changed file
defer.go
Ignore Space
Show notes
View
defer.go
0 → 100755
package main import "fmt" func hoge() { defer fmt.Println("3") // 4th defer fmt.Println("4") // 3rd fmt.Println("5") // 2nd } func fuga() { defer fmt.Println("1") // 5th fmt.Println("2") // 1st hoge() } func main() { fuga() }
Show line notes below