The three-dot ... notation can be used in a few places: To specify length when creating array literals arr := [...]string{"One", "Two", "Three", "Four", "Five"}
fmt.Println(len(arr)) // 5 Note that this creates an array with a fixed length, not a slice. So methods like append this will not work. Variadic Functions This is a function that can take any…