All Mapping functions
Name | Function header | Example | Result | Description | Errorhandling |
---|---|---|---|---|---|
setMapEntry | func(inmap map[string]string, key string, value string) map[string]string | [[ $v := setMapEntry $map "newkey" "newvalue" ]] |
$v contains the $map with the key “newkey” to to value “newvalue” | ||
newMap | func() map[string]string | [[ $v := newMap ]] |
$v contains a new map object | ||
mapData | func(inmap map[string]string, data Data) Data | [[ $v := mapData $map $data ]] |
maps the data from $data into $v according to the $map (maps keys) copies rest | ||
mapStrictData | func(inmap map[string]string, data Data) Data | [[ $v := mapStrictData $map $data ]] |
maps the data from $data into $v acording to the $map (maps only avilable keys) | ||
prefixReplace | func(inmap map[string]string, data Data) Data | [[ $v := prefixReplace $map $data ]] |
replaces prefixed in $data values according to key value from the $map | ||
suffixReplace | func(inmap map[string]string, data Data) Data | [[ $v := suffixReplace $map $data ]] |
replaces suffixes in $data values according to key value from the $map |
// TODO
func(inmap map[string]string, data Data) Data
The mapData
function …
Example with mapData
[[ $v := mapData ... ]]
$v
contains …
// TODO
func(inmap map[string]string, data Data) Data
The mapStrictData
function …
Example with mapStrictData
[[ $v := mapStrictData ... ]]
$v
contains …
// TODO
func() map[string]string
The newMap
function …
Example with newMap
[[ $v := newMap ... ]]
$v
contains …
// TODO
func(inmap map[string]string, data Data) Data
The prefixReplace
function …
Example with prefixReplace
[[ $v := prefixReplace ... ]]
$v
contains …
// TODO
func(inmap map[string]string, key string, value string) map[string]string
The setMapEntry
function …
Example with setMapEntry
[[ $v := setMapEntry ... ]]
$v
contains …
// TODO
func(inmap map[string]string, data Data) Data
The suffixReplace
function …
Example with suffixReplace
[[ $v := suffixReplace ... ]]
$v
contains …