Documentation
¶
Overview ¶
Package envsubst manage the replacemes of env variables in a file
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEnvVarNotFound = errors.New("could not find environment variable")
ErrEnvVarNotFound is thrown when a SHELL-FORMAT var in a file does not have a matching env variable
Functions ¶
func Envsubst ¶
Envsubst substitutes any SHELL-FORMAT variables embedded in a file by the value of the corresponding environment variable, provided in `vars`
SHELL-FORMAT is, `${foo}` BUT NOT `$foo`, for simplicity of implementation
NOTE: If a variable embedded in the file is not provided in the `vars` argument, this function will error out. This is different from the behavior of the `envsubst` shell command: in testing we should avoid silent failures
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.