Documentation ¶
Overview ¶
Package dotenv implements the parsing of the .env format.
There is no formal definition of the format but it has been introduced by https://github.com/bkeepers/dotenv which is thus canonical.
Index ¶
Constants ¶
View Source
const LINE = `` /* 384-byte string literal not displayed */
LINE is the regexp matching a single line
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse reads a string in the .env format and returns a map of the extracted key=values.
Ported from https://github.com/bkeepers/dotenv/blob/84f33f48107c492c3a99bd41c1059e7b4c1bb67a/lib/dotenv/parser.rb
TODO: * add support for variable expansion, probably needs API breakage
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.