Is the second example for `coll.Merge` incorrect?
Opened this issue · 1 comments
cofiem commented
The second example for coll.Merge
:
$ gomplate -i '{{ $dst := dict "foo" 1 "bar" 2 }}
{{ $src1 := dict "foo" 8 "baz" 4 }}
{{ $src2 := dict "foo" 3 "bar" 5 }}
{{ coll.Merge $dst $src1 $src2 }}'
map[foo:1 bar:5 baz:4]
gomplate/docs-src/content/functions/coll.yml
Lines 403 to 407 in 19cd050
gomplate/docs/content/functions/coll.md
Lines 621 to 625 in 19cd050
But using gomplate v4.1.0
I get:
$ gomplate -i '{{ $dst := dict "foo" 1 "bar" 2 }}
> {{ $src1 := dict "foo" 8 "baz" 4 }}
> {{ $src2 := dict "foo" 3 "bar" 5 }}
> {{ coll.Merge $dst $src1 $src2 }}'
map[bar:2 baz:4 foo:1]
The value for bar
is 2
?
hairyhenderson commented
Looks like #2217 will fix this