environment

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 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