package main
import "fmt"
func main() {
var s []int
for i := 0; i < 100000; i++ {
go func(n int) {
s = append(s, n)
}(i)
}
fmt.Printf("%d\n", s[0])
}
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.