Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateExpressionValue ¶
func EvaluateExpressionValue(eval evaluator.ExpressionEvaluator, value string) string
EvaluateExpressionValue evaluates value with eval, with deferred evaluation on, so that secrets resolve now. It returns "<ERROR: ...>" when the evaluation fails, and an empty string when the result is nil.
func Parse ¶
Parse returns the KEY=VALUE lines of dotenv content as a map. It skips comments, blank lines and lines that have no "=".
func ShouldUseCache ¶
ShouldUseCache reports whether to use a cached value again, from the NO_CACHE variable that lookupEnv reads. The cache is on by default. Set NO_CACHE=1 or NO_CACHE=true to turn it off.
func WarnOnLoosePermissions ¶
WarnOnLoosePermissions writes a warning to w when the group or other users can access the file at path. It does nothing when goos is "windows", because NTFS permissions do not use the FileMode bits.
Types ¶
This section is empty.