You're creating the slice each time around the loop,
so you will be ok, assuming you don't modify
the contents of the slice after sending it.
But in general, passing a slice over
a channel does not copy the entire slice - it passes a
reference to the items in the slice.
> --
> 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.