It depends who can see that variable, if this is a global variable, or its address has been taken it is not safe. If the variable is private the goroutine then it is safe becase there is no race on private variables. Remember a variable of type chan is just a pointer.
-- 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.