Skip to content

Instantly share code, notes, and snippets.

@chanwit
Created June 8, 2011 09:23
Show Gist options
  • Select an option

  • Save chanwit/1014085 to your computer and use it in GitHub Desktop.

Select an option

Save chanwit/1014085 to your computer and use it in GitHub Desktop.
#!/usr/bin/env gorun
package main
import "fmt"
func g() (a, b int) {
return 1,2
}
func f(a,b int) int {
return a
}
func main() {
fmt.Printf("%d\n", f(g()))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment