Function literals

r1, r2 := func() (string, string) {
    x := []string{"hello", "quickref.me"}
    return x[0], x[1]
}()
// => hello quickref.me
fmt.Println(r1, r2)
Comments