Enums

Soppo adds enums (sum types) to Go. An enum defines a type with a fixed set of possible values, called variants.

Simple enums have unit variants with no associated data. The compiler ensures you can only use valid variants.

Try it: Add a new color variant and use it.