mode

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DebugMode indicates mode is debug.
	DebugMode = "debug"
	// ReleaseMode indicates mode is release.
	ReleaseMode = "release"
	// TestMode indicates  mode is test.
	TestMode = "test"
)

Variables

This section is empty.

Functions

func GetMode

func GetMode() string

GetMode 获取运行模式

func IsDebugMode

func IsDebugMode() bool

IsDebugMode 是否Debug模式

func IsReleaseMode

func IsReleaseMode() bool

IsReleaseMode 是否Release模式

func IsTestMode

func IsTestMode() bool

IsTestMode 是否Test模式

func SetMode

func SetMode(m string)

SetMode 设置运行模式

Types

This section is empty.

Jump to

Keyboard shortcuts

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