Created
July 29, 2016 03:20
-
-
Save sota1235/02ecd5224817641483edc673b0c2b05e to your computer and use it in GitHub Desktop.
This file contains 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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("hoge") | |
defer fmt.Println("moge") | |
sub() | |
} | |
func sub() { | |
fmt.Println("fuga") | |
defer fmt.Println("moga") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hoge
fuga
moga
moge
の順に出力される