Versions in this module Expand all Collapse all v0 v0.0.0 Dec 10, 2025 Changes in this version + type Enum struct + func NewEnumWithDesc[enumCode comparable](code enumCode, description string) *Enum[enumCode, *MetaDesc] + func NewEnumWithMeta[enumCode comparable, metaType any](code enumCode, meta metaType) *Enum[enumCode, metaType] + func NewEnum[enumCode comparable](code enumCode) *Enum[enumCode, *MetaNone] + func (e *Enum[enumCode, metaType]) Code() enumCode + func (e *Enum[enumCode, metaType]) Meta() metaType + type Enums struct + func NewEnums[C comparable, M any](params ...*Enum[C, M]) *Enums[C, M] + func (c *Enums[C, M]) Get(code C) *Enum[C, M] + func (c *Enums[C, M]) GetDefault() *Enum[C, M] + func (c *Enums[C, M]) GetDefaultCode() C + func (c *Enums[C, M]) List() []C + func (c *Enums[C, M]) ListValid() []C + func (c *Enums[C, M]) Lookup(code C) (*Enum[C, M], bool) + func (c *Enums[C, M]) MustGet(code C) *Enum[C, M] + func (c *Enums[C, M]) SetDefault(enum *Enum[C, M]) + func (c *Enums[C, M]) SetDefaultCode(code C) + func (c *Enums[C, M]) SetDefaultValid(valid bool) + func (c *Enums[C, M]) UnsetDefault() + func (c *Enums[C, M]) WithDefault(enum *Enum[C, M]) *Enums[C, M] + func (c *Enums[C, M]) WithDefaultCode(code C) *Enums[C, M] + func (c *Enums[C, M]) WithDefaultValid(valid bool) *Enums[C, M] + func (c *Enums[C, M]) WithUnsetDefault() *Enums[C, M] + type MetaDesc struct + func (c *MetaDesc) Desc() string + type MetaNone struct