Documentation
¶
Overview ¶
Package dotenv sets one variable in a .env file, leaving every other line as it was.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoteNarrowed ¶
WarnIfCommittable warns on stderr when git tracks path, or would commit it because it is not ignored. Ignoring a tracked file alone keeps committing it, so that case also names git rm --cached. NoteNarrowed says that Set took group and other access off path, so the change to a file the user owns is never silent.
func Set ¶
Set writes name=value into path. The last line assigning name is replaced, since the last assignment is the one every loader keeps; with none, the line is appended. A new file is created at 0600, and an existing file keeps its owner bits but loses any group or other access, which narrowed reports, since the file now holds a password. A symbolic link is refused: a planted link would send it elsewhere.
func WarnIfCommittable ¶
Types ¶
This section is empty.