I am learning Go and it seems the ellipsis ...
has at least 3 uses:
// #1: Array declarations
a := [...]int{1, 2, 3}
// #2: Variadic parameters
b := func (ints ...int) []int { return ints }(1, 2, 3)
// #3: Slice spread
c := append([]int{}, []int{1, 2, 3}...)
Does the ellipsis have other uses than the above 3?
As noted in the comments, these are all 3 use cases in the language, although the go
tool uses ...
as a path wildcard.