{"modulePath":"github.com/crowdsecurity/crowdsec","version":"v1.5.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package csstring\n\n## Functions\n\n```go\nfunc StrictExpand(s string, mapping func(string) (string, bool)) string\n```\nStrictExpand 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.\n\nWhereas os.ExpandEnv uses os.Getenv, here we can use os.LookupEnv to distinguish between an empty variable and an undefined one.\n\n","path":"github.com/crowdsecurity/crowdsec/pkg/csstring","name":"csstring","synopsis":"","isRedistributable":true}
