Created
May 27, 2014 07:40
-
-
Save shockalotti/a7e28363d63d73e3f51b to your computer and use it in GitHub Desktop.
Go Golang - basic function call stack
This file contains hidden or 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 f2() int { | |
return 1 | |
} | |
func f1() int { | |
return f2() | |
} | |
func main() { | |
fmt.Println(f1()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment