diff options
Diffstat (limited to 'tpl/collections/init.go')
-rw-r--r-- | tpl/collections/init.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tpl/collections/init.go b/tpl/collections/init.go index 569932c08..8dbef75c9 100644 --- a/tpl/collections/init.go +++ b/tpl/collections/init.go @@ -46,6 +46,13 @@ func init() { }, ) + ns.AddMethodMapping(ctx.SymDiff, + []string{"symdiff"}, + [][2]string{ + {`{{ slice 1 2 3 | symdiff (slice 3 4) }}`, `[1 2 4]`}, + }, + ) + ns.AddMethodMapping(ctx.Delimit, []string{"delimit"}, [][2]string{ |