Inside a single goroutine the code proceeds in statement order. If it didn't chaos would ensue, it would be as if statements in a function were executed in random order.
However, from the view of another goroutine, without synchronising operations like channel sends and receives, or agreeing in a critical section via a mutex, this random order is precisely what abother goroutine perceives. -- 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.