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() }