To pass a slice to a variadic function, use ... after the slice:
numbers := []int{1, 2, 3, 4}
total := sum(numbers...) // spread the slice
The ... unpacks the slice into individual arguments. Without it, you'd be passing a single slice argument, which won't work if the function expects individual values. This syntax connects slices with variadic functions smoothly.