Created
August 26, 2011 14:30
-
-
Save xyproto/1173526 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
func jedi() { | |
fmt.Print("For eight hundred years have I ") | |
fmt.Print("trained Jedi.\nMy own counsel ") | |
fmt.Print("will I keep on who is to be ") | |
fmt.Print("trained.\nA Jedi must have the ") | |
fmt.Print("deepest commitment,\nthe most ") | |
fmt.Print("serious mind.") | |
} | |
func yoda() { | |
defer jedi() | |
defer fmt.Println("What know you of ready?") | |
defer fmt.Print("are you? ") | |
} | |
func main() { | |
defer fmt.Println() | |
defer yoda() | |
fmt.Print("Ready ") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment