News for hackers. Stuff that matters.
Re:Go Things I Love: Channels and Goroutines by TomNomNom on Tuesday January 07, 2020 @08:32AM (#21979723)
Ran the example on my machine and can confirm it's broken.

Be careful relying on the results of the Go playground; it has a bunch of differences and probably has GOMAXPROCS set to 1, which most other systems will not.

You need a sync.Mutex or similar protecting your call to append :)

There are no comments on this comment yet.