Documentation
¶
Index ¶
- Variables
- func GetEnv(e ...string) string
- func Init()
- func IsDebug() bool
- func IsDev() bool
- func IsProd() bool
- func IsSkipErrorFile() bool
- func IsStag() bool
- func LoadFile(envFiles ...string) (err error)
- func Parse() map[string]string
- func SetDebug() error
- func SetEnv(e, v string) error
- func SetSkipErrorFile() error
Constants ¶
This section is empty.
Variables ¶
View Source
var Cfg = struct { Prefix string Env string }{ Prefix: "", Env: DevEnv.Dev, }
Cfg default config
View Source
var DevEnv = _Env{
Dev: "dev",
Stag: "stag",
Prod: "prod",
}
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.