Documentation ¶
Overview ¶
Package environment provides way to define and get environment
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment int
const ( PROD Environment = iota DEV Environment = iota )
func GetEnvironment ¶
func GetEnvironment() Environment
GetEnvironment returns environment from env variable and fatals if it is different from PROD and DEV
Click to show internal directories.
Click to hide internal directories.