env

package
v0.0.0-...-5c09645 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package env contains environment-designating symbols and functions

Index

Constants

View Source
const (
	None  = Level(-1)
	Unit  = Level(0)
	Dev   = Level(1)
	Stage = Level(2)
	Prod  = Level(3)
)

env levels

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level int

Level is an integer representing a run env

func NewLevel

func NewLevel(level string) (Level, error)

NewLevel evaluates env var strings to Level instances

Jump to

Keyboard shortcuts

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