Closed matthewmueller closed 6 years ago
package main func main() { items := test("a", "b", "c", "d") for _, item := range items { println(item) } a := aa{} items = a.test("a", "b", "c", "d") for _, item := range items { println(item) } } func test(a string, items ...string) []string { return items } type aa struct{} func (*aa) test(a string, items ...string) []string { return items }
fixed