package main import "fmt"
func f() (int, bool) {return 1, false} func g1(int, bool) {} func g2(string, int, bool) {} func main() { fmt.Println(f()) // 1 false fmt.Println("a", f()) // multiple-value f() in single-value context g1(f()) // ok g2("a", f()) // multiple-value f() in single-value context // not enough arguments in call to g2 } -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.