I think you can change it like below: > var rm sync.Mutex > var ts [2]stringfor i, s := range []string{"first", "second"} { i, s := > i, s go func(i int, s string){ ts[i] = s }(i,s)} > > >
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.