mode

package
v0.0.0-...-7c2803f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 1 Imported by: 0

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