Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidEnvironment = errors.New("invalid environment")
Functions ¶
Types ¶
type EmptyEnvironmentKeyError ¶
type EmptyEnvironmentKeyError struct {
// contains filtered or unexported fields
}
EmptyEnvironmentKeyError is self described
func NewEmptyEnvironmentKeyError ¶
func NewEmptyEnvironmentKeyError(key string) EmptyEnvironmentKeyError
NewEmptyEnvironmentKeyError is a constructor
func (EmptyEnvironmentKeyError) Error ¶
func (i EmptyEnvironmentKeyError) Error() string
type Environment ¶
type Environment int
const ( DevelopmentEnvironment Environment = iota + 1 ProductionEnvironment )
func ParseEnvironment ¶
func ParseEnvironment(s string) (Environment, error)
func (Environment) IsProduction ¶
func (e Environment) IsProduction() bool
Click to show internal directories.
Click to hide internal directories.