Essential Go Basic types  Edit on GitHub      File Issue

Enums

Go doesn’t have a syntax for defining enumerations.

You can emulate enums using constants and a consistent naming scheme.

  ↑ ↓ to navigate     ↵ to select     Esc to close