Documentation ¶ Index ¶ Constants func Bool(key string, def bool) bool func Duration(key string, def time.Duration) time.Duration func Int(key string, def int) int func IsProd() bool func String(key, def string) string type Env func CurrentEnv() Env Constants ¶ View Source const EnvKey = "APP_ENV" Variables ¶ This section is empty. Functions ¶ func Bool ¶ func Bool(key string, def bool) bool func Duration ¶ func Duration(key string, def time.Duration) time.Duration func Int ¶ func Int(key string, def int) int func IsProd ¶ func IsProd() bool func String ¶ func String(key, def string) string Types ¶ type Env ¶ type Env string const ( EnvDev Env = "dev" EnvStaging Env = "staging" EnvProd Env = "prod" ) func CurrentEnv ¶ func CurrentEnv() Env Source Files ¶ View all Source files config.goenv.go Click to show internal directories. Click to hide internal directories.