↓ Skip to main content

Channels

Fun with `goroutines`

Fun with `goroutines`

Channels are way of communication between multiple goroutines You can declare a channel and the type of content the channel will receive like below. var myChannel chan int The int above is the type of data it can receive and the data can be send using