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 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.