gitlab.com/ethan.reesor/vscode-notebooks/yaegi@v0.0.0-20220417214422-5c573557938e/_test/variadic.go (about) 1 package main 2 3 import "fmt" 4 5 func f(a ...int) { 6 fmt.Println(a) 7 } 8 9 func main() { 10 f(1, 2, 3, 4) 11 } 12 13 // Output: 14 // [1 2 3 4]