Documentation
¶
Index ¶
- func Convert[E EnumValues](names []string) E
- func FlagNames[E EnumNames](val E) []string
- func Flags[E EnumNames](val E) []E
- func FlagsInt[E EnumNames](val E) []int32
- func NamesHelpString(vals map[string]int32) string
- func Parse[E EnumValues](val string) E
- func SupportedNames[E EnumValues]() string
- type Enum
- type EnumNames
- type EnumValues
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NamesHelpString ¶
NamesHelpString returns supported Enum values concatenated by ","
func SupportedNames ¶
func SupportedNames[E EnumValues]() string
SupportedNames returns supported Enum values concatenated by ","
Types ¶
type EnumValues ¶
EnumValues interface for enum with values
Click to show internal directories.
Click to hide internal directories.