env

package
v0.3.26 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunLocalEnv = "local"
	RunTestEnv  = "test"
	RunProdEnv  = "prod"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalEnv

type GlobalEnv struct {
	AppName      string
	RunEnv       RunEnv
	WorkDir      string
	BuildVersion string
}

GlobalEnv 全局环境变量

func (*GlobalEnv) LoadRunEnv

func (e *GlobalEnv) LoadRunEnv()

type RunEnv

type RunEnv string

func (RunEnv) FromStr

func (e RunEnv) FromStr(env string) RunEnv

Jump to

Keyboard shortcuts

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