Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Development is developers local environment not necessarily connected to Internet. Development = Env(development) // Staging describes production like environment such as testing or CI server. Staging = Env(staging) // Production describes the one and only production environment. Production = Env(production) )
Variables ¶
View Source
var EnvDefault = Production
EnvDefault is the default runtime environment.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env string
Env represents runtime environment.
func MustParseEnv ¶
MustParseEnv calls ParseEnv and on error returns EnvDefault.
Click to show internal directories.
Click to hide internal directories.