Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment []*Variable
Environment is a set of environment variables
func Parse ¶
func Parse(paths ...string) (Environment, error)
Parse reads env files into a slice of Variables. If multiple files contain the same key, the file specified last takes precedence. Empty lines and lines starting with a # are ignored.
func (Environment) AsSh ¶
func (e Environment) AsSh() []string
AsSh returns a slice of the variables in teh Bourne shell format name=value.
Click to show internal directories.
Click to hide internal directories.