Applications go vararg

text FUNC (C ... int) { 
fmt.Println (C)
}





FUNC main () {
var A = [] {1,2,3,4} int
text (A ...)
// ... is the value of this list will be a break in the python ** corresponds to what is equal to a conversion dictionary what kind of form

Guess you like

Origin www.cnblogs.com/yangxinpython/p/12025051.html
Go