Documentation ¶
Index ¶
- func CurrentPackage() string
- func Environ() []string
- func Get(key string, value string) string
- func GoPath() string
- func GoPaths() []string
- func Load(files ...string) error
- func Map() map[string]string
- func MustGet(key string) (string, error)
- func MustSet(key string, value string) error
- func Reload()
- func Set(key string, value string)
- func Temp(f func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentPackage ¶
func CurrentPackage() string
func Load ¶
Load .env files. Files will be loaded in the same order that are received. Redefined vars will override previously existing values. IE: envy.Load(".env", "test_env/.env") will result in DIR=test_env If no arg passed, it will try to load a .env file.
func MustSet ¶
MustSet the value into the underlying ENV, as well as envy. This may return an error if there is a problem setting the underlying ENV value.
func Reload ¶
func Reload()
Reload the ENV variables. Useful if an external ENV manager has been used
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.