Documentation
¶
Overview ¶
Package dotenv parses .env-style KEY=VALUE text into ordered pairs, for bulk importing application and stack environment variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValue ¶
KeyValue is one parsed environment entry.
func Parse ¶
Parse reads .env-style content and returns the variables in file order. It skips blank lines and # comments, tolerates an optional `export ` prefix, and strips matching single or double quotes around values. Duplicate keys are returned in order for the caller to resolve. Lines without an `=` or with an empty key are ignored.
Click to show internal directories.
Click to hide internal directories.