mode

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// DebugMode 调试模式
	DebugMode = "debug"
	// TestMode 测试模式
	TestMode = "test"
	// PreReleaseMode 预发布模式
	PreReleaseMode = "pre-release"
	// ReleaseMode 发布模式
	ReleaseMode = "release"
)

Variables

This section is empty.

Functions

func GetMode

func GetMode() string

GetMode 获取运行模式 @return @1 string 当前运行模式

func IsDebugMode

func IsDebugMode() bool

IsDebugMode 是否Debug模式 @return @1 bool 当前是否为Debug模式

func IsPreReleaseMode added in v2.6.0

func IsPreReleaseMode() bool

IsPreReleaseMode 是否PreRelease模式 @return @1 bool 当前是否为PreRelease模式

func IsReleaseMode

func IsReleaseMode() bool

IsReleaseMode 是否Release模式 @return @1 bool 当前是否为Release模式

func IsTestMode

func IsTestMode() bool

IsTestMode 是否Test模式 @return @1 bool 当前是否为Test模式

func SetMode

func SetMode(m string)

SetMode 设置运行模式 模式需为debug、test、pre-release或release之一,空值按debug处理 @param m string 待设置的运行模式

Types

This section is empty.

Jump to

Keyboard shortcuts

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