diff --git a/func/vargs.go b/func/vargs.go new file mode 100644 index 0000000..9365b34 --- /dev/null +++ b/func/vargs.go @@ -0,0 +1,12 @@ +package main + +import "fmt" + +func hoge(vals ...int64) { + fmt.Println(len(vals)) +} + +func main() { + hoge(1, 2, 3) +} +