Maps
The Maps registry offers tools for creating, manipulating, and interacting with map data structures, facilitating efficient data organization and retrieval.
dict
{{ dict "key1" "value1" "key2" "value2" }}
// Output: map[key1:value1 key2:value2]get
{{ dict "key" "value" | get "key" }} // Output: "value"
{{ dict "key" "value" | get "invalid" }} // Output: ""set
{{ dict "key" "oldValue" | set "key" "newValue" }} // Output: map[key:newValue]
{{ dict "foo" "bar" | set "far" "boo" }} // Output: map[far:boo foo:bar]unset
keys
values
pluck
pick
omit
dig
hasKey
merge
mergeOverwrite
Last updated