Documentation ¶
Index ¶
- Constants
- func Array(key string, def string) []string
- func Basedir() string
- func Bool(key string, value ...bool) bool
- func Duration(key string, values ...time.Duration) *time.Duration
- func Int[T ~int | ~int32 | ~int8 | ~int64](key string, value ...T) T
- func Load(name string) (bool, string, error)
- func String(key string, defs ...string) string
- func StringOrNil(key string) *string
- func Workdir() string
- func WorkdirPlus(elem ...string) (ret string)
Constants ¶
View Source
const ( VarEnviroment = "APP_ENV" VarWorkDir = "workdir" VarBaseDir = "basedir" )
View Source
const ( Development = "development" Production = "production" Test = "test" )
Variables ¶
This section is empty.
Functions ¶
func Load ¶ added in v0.5.0
Follows this convention:
https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
func StringOrNil ¶ added in v0.5.0
func WorkdirPlus ¶ added in v0.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.