@@ -10,25 +10,39 @@ import (
1010
1111// CoreFunctions are the custom functions for interpolation
1212var CoreFunctions = map [string ]ast.Function {
13- "lower" : interpolationFuncLower (),
14- "upper" : interpolationFuncUpper (),
15- "env" : interpolationFuncEnv (),
16- "join" : interpolationFuncJoin (),
17- "has" : interpolationFuncHas (),
18- "map" : interpolationFuncMap (),
19- "keys" : interpolationFuncKeys (),
20- "list" : interpolationFuncList (),
21- "concat" : interpolationFuncConcat (),
22- "replace" : interpolationFuncReplace (),
23- "max" : interpolationFuncMax (),
24- "min" : interpolationFuncMin (),
25- "contains" : interpolationFuncContains (),
26- "split" : interpolationFuncSplit (),
27- "length" : interpolationFuncLength (),
13+ // helpers
14+ "env" : interpolationFuncEnv (),
15+ "length" : interpolationFuncLength (),
16+
17+ // strings
18+ "lower" : interpolationFuncLower (),
19+ "upper" : interpolationFuncUpper (),
20+ "replace" : interpolationFuncReplace (),
21+ "contains" : interpolationFuncContains (),
22+ "split" : interpolationFuncSplit (),
23+
24+ // maps
25+ "has" : interpolationFuncHas (),
26+ "map" : interpolationFuncMap (),
27+ "keys" : interpolationFuncKeys (),
28+ "merge" : interpolationFuncMerge (),
29+ "pick" : interpolationFuncPick (),
30+ "omit" : interpolationFuncOmit (),
31+
32+ // lists
33+ "join" : interpolationFuncJoin (),
34+ "list" : interpolationFuncList (),
35+ "concat" : interpolationFuncConcat (),
36+ "unique" : interpolationFuncUnique (),
37+
38+ // math
39+ "max" : interpolationFuncMax (),
40+ "min" : interpolationFuncMin (),
41+
42+ // encoding
2843 "jsonencode" : interpolationFuncJSONEncode (),
29- "pick" : interpolationFuncPick (),
30- "omit" : interpolationFuncOmit (),
31- "unique" : interpolationFuncUnique (),
44+ "base64enc" : interpolationFuncBase64Encode (),
45+ "base64dec" : interpolationFuncBase64Decode (),
3246}
3347
3448// interpolationFuncEnv will extract a variable out of the env
0 commit comments