environment

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 1

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 added in v1.0.0

func MustParse(env string) Env

func Parse

func Parse(env string) (Env, error)

Jump to

Keyboard shortcuts

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