2 ms·
He uses channels, which are the main Go primitive. "Share by communicating" and all that.
by fulafel 13y ago
He uses channels, which are the main Go primitive. "Share by communicating" and all that.
- voidlogic 13y ago>>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.
- deleted 13y ago[deleted]