env

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Development = "development"
	Alpha       = "alpha"
	Beta        = "beta"
	Staging     = "staging"
	Production  = "production"
)

List available environments.

Variables

This section is empty.

Functions

func GetCurrent

func GetCurrent() string

GetCurrent returns the current environment, if available. Otherwise returns environment as development.

func IsAlpha

func IsAlpha() bool

IsAlpha return true when current environment is alpha.

func IsBeta

func IsBeta() bool

IsBeta return true when current environment is beta.

func IsDevelopment

func IsDevelopment() bool

IsDevelopment return true when current environment is development.

func IsProduction

func IsProduction() bool

IsProduction return true when current environment is production.

func IsStaging

func IsStaging() bool

IsStaging return true when current environment is staging.

Types

This section is empty.

Jump to

Keyboard shortcuts

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