Documentation
¶
Overview ¶
Package dotnev provide load .env data to os ENV.
Deprecated: pkg name is error, please use dotenv
Index ¶
- func Bool(name string, defVal ...bool) (val bool)
- func ClearLoaded()
- func DontUpperEnvKey()
- func Get(name string, defVal ...string) (val string)
- func Int(name string, defVal ...int) (val int)
- func Load(dir string, filenames ...string) (err error)
- func LoadExists(dir string, filenames ...string) error
- func LoadFromMap(kv map[string]string) (err error)
- func LoadedData() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadExists ¶
LoadExists only load on file exists
func LoadFromMap ¶
LoadFromMap load data from given string map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.