Skip to content

Instantly share code, notes, and snippets.

@shockalotti
Created May 27, 2014 07:43
Show Gist options
  • Save shockalotti/3a89ad9de9fe3cc7b095 to your computer and use it in GitHub Desktop.
Save shockalotti/3a89ad9de9fe3cc7b095 to your computer and use it in GitHub Desktop.
Go Golang - name function return
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