environment

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidEnv = errors.New("invalid Environment: prod, production, dev, development, develop, testing, test")

Functions

This section is empty.

Types

type Env

type Env uint8
const (
	Development Env = iota
	Production
	Testing
	Staging
)

func MustParse

func MustParse(env string) Env

func Parse

func Parse(env string) (Env, error)

func (Env) String added in v2.1.0

func (e Env) String() string

Jump to

Keyboard shortcuts

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