Documentation ¶
Index ¶
Constants ¶
View Source
const EnvVarPattern = "\\${[a-zA-Z0-9/-_--]+}"
EnvVarPattern define environment variable pattern with ${MY_ENV_VAR}
Variables ¶
View Source
var EnvVarReplacerFunc = func(matches [][]byte) (map[string]string, error) { kv := make(map[string]string) for _, m := range matches { k := string(m) v := os.Getenv(k[2 : len(k)-1]) kv[k] = v } return kv, nil }
EnvVarReplacerFunc for replacing environment variable with the regex
Functions ¶
This section is empty.
Types ¶
type ReplaceFunc ¶
ReplaceFunc for tempe
Click to show internal directories.
Click to hide internal directories.