How to: [⏫](#contents) Enum via generics with [enum](https://github.com/orsinium-labs/enum)
Type safe enums for Go without code generation or reflection. — [@orsinium](https://github.com/orsinium)

```go
type Color enum.Member[string]

var (
  Red    = Color{"red"}
  Green  = Color{"green"}
  Blue   = Color{"blue"}
  Colors = enum.New(Red, Green, Blue)
)
```