Documentation ¶
Overview ¶
Package appenv provides utilities to configure the app environment (prod, dev, test).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Env ¶
func Env() string
Env returns the deployment environment set for this app ("prod", "dev", or "test"). Default to "dev".
func SetDefaultEnv ¶
func SetDefaultEnv(newVal string)
SetDefaultEnv sets the deployment environment to the given value if not set.
func SetDefaultEnvToTest ¶
func SetDefaultEnvToTest()
SetDefaultEnvToTest set the deployment environment to the "test" if not set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.