News for hackers. Stuff that matters.
Re:Sane Concurrency with Go by fulafel on Wednesday March 12, 2014 @05:22PM (#7388490)
He uses channels, which are the main Go primitive. "Share by communicating" and all that.
Re:Sane Concurrency with Go by voidlogic on Wednesday March 12, 2014 @05:48PM (#7388621)
>>which are the main Go primitive.

When it comes to protecting a structs state, in most Go code (including the standard library) RW/Mutexes are the "go to" synchronization primitive. Channels are more commonly used for communication between longer running goroutines.