Open main menu

CDOT Wiki β

Changes

Team Go

No change in size, 01:03, 18 December 2017
no edit summary
Channels are what Goroutines use to communicate with each other. They help Goroutines synchronize their execution. Channels can have directions that restrict them to just sending or receiving. Channels can have several parts to them: the type of element you can send through a channel, its capacity or buffer size and the direction of communication which is specified using a <- operator.
<source lang ="go":>
package main
32
edits