Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvironmentStrings ¶
func EnvironmentStrings() []string
EnvironmentStrings returns a slice of all String values of the enum
Types ¶
type Environment ¶
type Environment int
const ( Terrestrial Environment = iota Aerial )
func EnvironmentString ¶
func EnvironmentString(s string) (Environment, error)
EnvironmentString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func EnvironmentValues ¶
func EnvironmentValues() []Environment
EnvironmentValues returns all values of the enum
func (Environment) IsAEnvironment ¶
func (i Environment) IsAEnvironment() bool
IsAEnvironment returns "true" if the value is listed in the enum definition. "false" otherwise
func (Environment) MarshalJSON ¶
func (i Environment) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for Environment
func (Environment) String ¶
func (i Environment) String() string
func (*Environment) UnmarshalJSON ¶
func (i *Environment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for Environment
Click to show internal directories.
Click to hide internal directories.