Documentation
¶
Overview ¶
Package envfile provides functionality to parse files containing environment variables in the format key=value.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶ added in v1.1.0
Parse reads data from the r, parses the content in the key=value format, and sets environment variables.
Types ¶
type Envs ¶
type Envs []string
Envs represents an array of strings, where each string follows the format key=value.
func Parse ¶
Parse reads data from the r, parses the content in the key=value format, and returns an Envs type.
func ParseFile ¶
ParseFile reads the named file, parses the content in the key=value format, and returns an Envs type.
Click to show internal directories.
Click to hide internal directories.