{"modulePath":"github.com/windsorcli/cli","version":"v0.10.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dotenv\n\n## Functions\n\n```go\nfunc EvaluateExpressionValue(eval evaluator.ExpressionEvaluator, value string) string\n```\nEvaluateExpressionValue evaluates value with eval, with deferred evaluation on, so that secrets resolve now. It returns \"\\\u003cERROR: ...\u003e\" when the evaluation fails, and an empty string when the result is nil.\n\n```go\nfunc Parse(content string) map[string]string\n```\nParse returns the KEY=VALUE lines of dotenv content as a map. It skips comments, blank lines and lines that have no \"=\".\n\n```go\nfunc ShouldUseCache(lookupEnv func(string) (string, bool)) bool\n```\nShouldUseCache 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.\n\n```go\nfunc WarnOnLoosePermissions(w io.Writer, goos, path string, mode os.FileMode)\n```\nWarnOnLoosePermissions 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.\n\n","path":"github.com/windsorcli/cli/pkg/runtime/dotenv","name":"dotenv","synopsis":"","isRedistributable":true}
