Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeMaps ¶
MergeMaps merge two or more maps the latter map overrides the former if duplicate keys exist across the two maps
func ReplaceVar ¶
func ReplaceVar(text string, conf Configuration) string
ReplaceVar recursively replaces any variables in the text string using values provided by the config source
Types ¶
type Configuration ¶
type Configuration interface { Get(key string) string Set(key, value string) Merge(s Configuration) MergeMap(m map[string]string) Append(m map[string]string) Configuration Vars() map[string]string Replace() Slice() []string String() string }
Configuration represent a source of environment variables
Click to show internal directories.
Click to hide internal directories.