mode

package
v2.6.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// DebugMode is the debug mode.
	DebugMode = "debug"
	// TestMode is the test mode.
	TestMode = "test"
	// PreReleaseMode is the pre-release mode.
	PreReleaseMode = "pre-release"
	// ReleaseMode is the release mode.
	ReleaseMode = "release"
)

Variables

This section is empty.

Functions

func GetMode

func GetMode() string

GetMode returns the current run mode.

func IsDebugMode

func IsDebugMode() bool

IsDebugMode reports whether the run mode is debug.

func IsPreReleaseMode added in v2.6.0

func IsPreReleaseMode() bool

IsPreReleaseMode reports whether the run mode is pre-release.

func IsReleaseMode

func IsReleaseMode() bool

IsReleaseMode reports whether the run mode is release.

func IsTestMode

func IsTestMode() bool

IsTestMode reports whether the run mode is test.

func SetMode

func SetMode(m string)

SetMode sets the run mode.

The mode must be one of debug, test, pre-release or release; an empty value is treated as debug.

Types

This section is empty.

Jump to

Keyboard shortcuts

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