package
2.16.0
Repository: https://github.com/rickb777/enumeration.git
Documentation: pkg.go.dev

# Functions

AsRepresentation parses a string to find the corresponding Representation, accepting either one of the string values or a number.
MustParseRepresentation is similar to AsRepresentation except that it panics on error.
No description provided by the author
RepresentationOf returns a Representation based on an ordinal number.

# Constants

No description provided by the author
the value of the enumerant as a decimal number.
No description provided by the author
No description provided by the author

# Variables

AllRepresentations lists all 4 values in order.

# Interfaces

Enum is a generic contract for all generated enums.
FloatEnum is a specialisation for those enums that have float32 or float64 as the underlying type.
IntEnum is a specialisation for those enums that have int or similar as the underlying type.

# Type aliases

Enums is a slice of Enum.
FloatEnums is a slice of FloatEnum.
IntEnums is a slice of IntEnum.
No description provided by the author