deploy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsProduction

func IsProduction() bool

IsProduction 是否生产模式

func IsRelease

func IsRelease() bool

IsRelease 发布, 预发或者生产环境

func IsUat

func IsUat() bool

IsUat 是否预发布模式

Types

type Deploy

type Deploy int
const (
	None Deploy = iota // none
	Dev                // dev
	Test               // test
	Uat                // uat
	Prod               // prod
)

func Convert

func Convert(m string) Deploy

Convert m to Deploy

func (Deploy) String

func (i Deploy) String() string

Jump to

Keyboard shortcuts

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