Documentation
¶
Overview ¶
Package dotnev provide load .env data to os ENV
Deprecated: please use github.com/gookit/ini/v2/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)deprecated
- 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 Bool ¶ added in v2.1.0
Bool get a bool value by key Deprecated: please use github.com/gookit/ini/v2/dotenv
func ClearLoaded ¶ added in v2.0.11
func ClearLoaded()
ClearLoaded clear the previously set ENV value Deprecated: please use github.com/gookit/ini/v2/dotenv
func DontUpperEnvKey ¶ added in v2.0.11
func DontUpperEnvKey()
DontUpperEnvKey don't change key to upper on set ENV Deprecated: please use github.com/gookit/ini/v2/dotenv
func Get ¶ added in v2.0.9
Get get os ENV value by name Deprecated: please use github.com/gookit/ini/v2/dotenv
func Int ¶ added in v2.0.11
Int get a int value by key Deprecated: please use github.com/gookit/ini/v2/dotenv
func LoadExists ¶
LoadExists only load on file exists Deprecated: please use github.com/gookit/ini/v2/dotenv
func LoadFromMap ¶
LoadFromMap load data from given string map Deprecated: please use github.com/gookit/ini/v2/dotenv
func LoadedData ¶ added in v2.0.11
LoadedData get all loaded data by dontenv Deprecated: please use github.com/gookit/ini/v2/dotenv
Types ¶
This section is empty.