Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnumFlagValue ¶
EnumFlagValue is a flag value that validates its value is one of a set of allowed values.
func EnumFlag ¶
func EnumFlag(allowed ...string) *EnumFlagValue
EnumFlag returns an enum flag value with the allowed strings. First one is the default.
func (*EnumFlagValue) Set ¶
func (f *EnumFlagValue) Set(s string) error
func (*EnumFlagValue) String ¶
func (f *EnumFlagValue) String() string
func (*EnumFlagValue) Type ¶
func (f *EnumFlagValue) Type() string
Click to show internal directories.
Click to hide internal directories.