package main import "fmt" func hoge(vals ...int64) { fmt.Println(len(vals)) } func main() { hoge(1, 2, 3) }