Adds expr functions for KV, KVV, Vars manipulation

- Adds/Refactors methods for Set, Merge, Filter, Delete
- Renames expr/Vars.Merge to MustMerge, updates its usage
- Appends kvFunctions to parser in pkg/expr
- Update/Fixes tests and example testable
This commit is contained in:
Vivek Patel
2021-05-21 06:58:52 +02:00
committed by Denis Arh
parent 28e1774cd2
commit 044d02bb76
14 changed files with 896 additions and 28 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func join(arr interface{}, sep string) (out string, err error) {
} else if i, is := arr.([]interface{}); is {
// If slice of interfaces, we can try to cast them
var aux []string
aux, err = CastStringSlice(i)
aux, err = CastToStringSlice(i)
if err != nil {
return
}