Documentation
¶
Overview ¶
Package envfile loads simple dotenv-style files without overriding process environment values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoadResult ¶
LoadResult describes one env-file load without exposing values.
func LoadIntoEnv ¶
func LoadIntoEnv(path string, explicit bool) (LoadResult, error)
LoadIntoEnv loads path and sets only names that are not already present in the process environment. Existing process values always win, including a value changed with os.Setenv after a previous load: a reload only overwrites a name whose current value is still the one this loader last applied.
Click to show internal directories.
Click to hide internal directories.