Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupEnv ¶ added in v1.83.0
LookupEnv returns the expanded environment variable value for the given name.
The expanded means that `%{ENV_VAR}` placeholders in env var value are replaced with the corresponding ENV_VAR values (recursively).
false is returned if environment variable isn't found.
func ReplaceBytes ¶ added in v1.83.0
ReplaceBytes replaces `%{ENV_VAR}` placeholders in b with the corresponding ENV_VAR values.
Error is returned if ENV_VAR isn't set for some `%{ENV_VAR}` placeholder.
func ReplaceString ¶ added in v1.83.0
ReplaceString replaces `%{ENV_VAR}` placeholders in b with the corresponding ENV_VAR values.
Error is returned if ENV_VAR isn't set for some `%{ENV_VAR}` placeholder.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.