Documentation ¶
Overview ¶
Package test ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnumStrings ¶
func EnumStrings() []string
EnumStrings returns a slice of all String values of the enum
Types ¶
type Enum ¶
type Enum int
func EnumString ¶
EnumString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Enum) IsAEnum ¶
IsAEnum returns "true" if the value is listed in the enum definition. "false" otherwise
func (Enum) MarshalJSON ¶ added in v0.2.1
MarshalJSON implements the json.Marshaler interface for Enum
func (*Enum) UnmarshalJSON ¶ added in v0.2.1
UnmarshalJSON implements the json.Unmarshaler interface for Enum
Click to show internal directories.
Click to hide internal directories.