mode

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: CC-BY-4.0, MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// Dev for development mode.
	Dev = "dev"
	// Prod for production mode.
	Prod = "prod"
	// TestDev used for tests.
	TestDev = "testdev"
)

Variables

This section is empty.

Functions

func Get

func Get() string

Get returns the current mode.

func IsDev

func IsDev() bool

IsDev returns true if the current mode is dev mode.

func Set

func Set(newMode string)

Set sets the new mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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