Documentation
¶
Overview ¶
Package dotenv implements support for dotenv files as described at <https://docs.docker.com/compose/env-file/>. Note that this means that comments may appear only at the beginning of lines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Env ¶
type Env []string
Env is an array of name-value pairs from a Dockerfile-style dotenv file.
func ReadFile ¶
ReadFile reads filename and returns a Env object containing each nonblank, not comment line. The lines are not guaranteed to be sensical.
func (Env) Dump ¶
Dump writes the content of the passed environment.
Click to show internal directories.
Click to hide internal directories.