Created
May 27, 2014 07:43
-
-
Save shockalotti/3a89ad9de9fe3cc7b095 to your computer and use it in GitHub Desktop.
Go Golang - name function return
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 f1() (r int) { | |
r = 1 | |
return | |
} | |
func main() { | |
fmt.Println(f1()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment