Skip to content

Glossary: Go Beyond the Basics

select

Also written: select statement

A statement that waits on several channel operations and runs the case of the first one that is ready, picking randomly if several are. It looks like a `switch`.

Where the book teaches it

Related terms

default (in select)time.After / time.NewTickerchannel