go - All uses of ellipsis -


i learning go , seems ellipsis ... has @ least 3 uses:

// #1: array declarations := [...]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 ellipsis have other uses above 3?

as noted in comments, these 3 use cases in language, although go tool uses ... path wildcard.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -