env

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PrefixDefine = "_DEFINE_DEPLOY_ENV_"

Variables

This section is empty.

Functions

func Is

func Is(deployEnv DeployEnv) bool

Types

type DeployEnv

type DeployEnv int
const (
	Production  DeployEnv = 10000
	Demo        DeployEnv = 5000
	Staging     DeployEnv = 3000
	QA          DeployEnv = 2000
	Development DeployEnv = 1000
	Local       DeployEnv = 0
)

func GetDeployEnv

func GetDeployEnv() DeployEnv

func NewDeployEnv

func NewDeployEnv(name string, value int) DeployEnv

func (DeployEnv) String

func (d DeployEnv) String() string

Jump to

Keyboard shortcuts

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