Skip to content

Glossary: Go Basics

case and default

Also written: case, default

Parts of a `switch`: each `case` lists values to match, and `default` runs when nothing matches.

Where the book teaches it

Related terms

switch