Skip to content

Glossary: Go Beyond the Basics

close

Also written: close(ch)

A built-in that marks a channel as finished. Receivers still get any values left, then stop. Only the sender should close a channel, since sending on a closed one panics.

Where the book teaches it

Related terms

channeldone channel