Documentation
¶
Overview ¶
Package dotenv parses .env files into a map for the SDK's configuration cascade. It deliberately never mutates the process environment: a library must not surprise its host program (or other libraries in it) with variables that appear out of nowhere depending on the working directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse reads a .env file and returns its key/value pairs. It supports the common .env dialect: KEY=value lines, optional "export " prefixes, blank and #-comment lines, one balanced pair of surrounding quotes (single or double), and inline " #" comments on unquoted values. It never touches the process environment.
On an oversized line Parse returns the entries parsed up to that point alongside the scanner error, so a broken tail cannot silently drop the rest of the file.
Types ¶
This section is empty.