Skip to content

Glossary: Go Beyond the Basics

directional channel

Also written: chan<- T, <-chan T, send-only, receive-only

A channel type limited to one direction: `chan<- T` can only send and `<-chan T` can only receive. The compiler enforces it.

Where the book teaches it

Related terms

channelsendreceive