January 2019
Beginner
132 pages
3h 14m
English
Channels are conduits through which goroutines can send and receive information. This sits at the core of the Go's concurrency model for sharing memory through communicating. Channels allow for goroutines to each other rather than trying to access the same information. Channels are also unidirectional, meaning that data can only flow in one direction, as shown in the following diagram:

In our previous example using mutexes, multiple threads attempted to access the map containing the status of each website by creating a release lock. We can use channels ...
Read now
Unlock full access