environment

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL