github.com/traefik/yaegi@v0.15.1/_test/variadic1.go (about)

     1  package main
     2  
     3  import "fmt"
     4  
     5  func f(s string, a ...int32) {
     6  	fmt.Println(s, a)
     7  }
     8  
     9  func main() {
    10  	f("hello", 1, 2, 3)
    11  }
    12  
    13  // Output:
    14  // hello [1 2 3]