Files
moxa/_test/variadic5.go
2019-09-23 15:20:04 +02:00

23 lines
187 B
Go

package main
import (
"fmt"
)
type A struct {
}
func (a A) f(vals ...bool) {
for _, v := range vals {
fmt.Println(v)
}
}
func main() {
a := A{}
a.f(true)
}
// Output:
// true