github.com/traefik/yaegi@v0.15.1/_test/fun19.go (about) 1 package main 2 3 import ( 4 "fmt" 5 ) 6 7 func foo() ([]string, error) { 8 return nil, fmt.Errorf("bar") 9 } 10 11 func main() { 12 a, b := foo() 13 fmt.Println(a, b) 14 } 15 16 // Output: 17 // [] bar