Documentation ¶
Index ¶
- func Bool(key string) bool
- func Float(key string) float64
- func Get(key string) interface{}
- func GetDefs() map[string]interface{}
- func Int(key string) int
- func Load(filenames ...string) (err error)
- func MilliSeconds(key string) time.Duration
- func SetDef(key string, value interface{})
- func String(key string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load filenames, or .env if called by Load().
Notice existed env var won't be replaced by loading these files.
func MilliSeconds ¶
MilliSeconds assumes key mapped to value of millisecond (e.g. 1000 for one second), and returns it as time.Duration type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.