Skip to content

Instantly share code, notes, and snippets.

@sota1235
Created July 29, 2016 03:20
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 sota1235/02ecd5224817641483edc673b0c2b05e to your computer and use it in GitHub Desktop.
Save sota1235/02ecd5224817641483edc673b0c2b05e to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
func main() {
fmt.Println("hoge")
defer fmt.Println("moge")
sub()
}
func sub() {
fmt.Println("fuga")
defer fmt.Println("moga")
}
@sota1235
Copy link
Author

hoge
fuga
moga
moge
の順に出力される

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment