mode

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: MIT Imports: 1 Imported by: 12

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