Documentation ¶
Overview ¶
Package dotnev provide load .env data to os ENV
Deprecated: please use github.com/gookit/ini/v2/dotenv
Index ¶
- Variables
- 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 ¶
View Source
var ( // UpperEnvKey change key to upper on set ENV UpperEnvKey = true // DefaultName default file name DefaultName = ".env" // OnlyLoadExists load on file exists OnlyLoadExists bool )
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.