Maybe something like the following would be more explicit:
for i,x := range xs {
go func(x) {
fmt.Println(x)
}(x)
} for i,x := range xs {
go func(x) {
fmt.Println(x)
}(x)
}Interesting how the go syntax makes it easy to explicitly pass in arguments. That is very nice.