A variadic function accept varying numbers of arguments.

To declare a variadic function, the type of of the final parameter is preceded by an ellipsis, “…”

func sum(vals ...int) int {}

…int ellipsis defined a function can be called with any number of arguments of this type

vals is []int slice, can be access this slice using index or for..range