xenv

package
v0.0.0-...-6d34543 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDev

func IsDev() bool

func IsPre

func IsPre() bool

func IsPro

func IsPro() bool

func IsQa

func IsQa() bool

Types

type DeployEnv

type DeployEnv string

----------------------------------------

运行环境类型定义

----------------------------------------

const (
	DeployEnvDev  DeployEnv = "dev" // local develop
	DeployEnvQa   DeployEnv = "qa"  // test
	DeployEnvPre  DeployEnv = "pre" // pre release
	DeployEnvProd DeployEnv = "pro" // production
)

type RunMode

type RunMode struct {
	// contains filtered or unexported fields
}

----------------------------------------

运行环境类型定义

----------------------------------------

func SetRunMode

func SetRunMode(mode string) *RunMode

func (RunMode) GetEnv

func (run RunMode) GetEnv() DeployEnv

func (*RunMode) IsValid

func (run *RunMode) IsValid() bool

Jump to

Keyboard shortcuts

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