Skip to content

Glossary: Go Beyond the Basics

channel

Also written: channels, chan T

A typed pipe that goroutines use to send values to each other. `chan int` carries `int`s, and a send and a receive are needed for each hand-over.

Where the book teaches it

Related terms

sendreceivebuffered channelunbuffered channelgoroutine