package main import "fmt" var a, b, c = foo() func main() { fmt.Println(a, b, c) } func foo() (int, int, int) { fmt.Println("foo"); return 1, 2, 3; }