Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StrictExpand ¶
StrictExpand replaces ${var} or $var in the string according to the mapping function, like os.Expand. The difference is that the mapping function returns a boolean indicating whether the variable was found. If the variable was not found, the string is not modified.
Whereas os.ExpandEnv uses os.Getenv, here we can use os.LookupEnv to distinguish between an empty variable and an undefined one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.