mode

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

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