mode

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// DebugMode indicates due mode is debug.
	DebugMode = "debug"
	// ReleaseMode indicates due mode is release.
	ReleaseMode = "release"
	// TestMode indicates due 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