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`.
Glossary: Go Beyond the Basics
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`.