File tree 1 file changed +63
-42
lines changed
1 file changed +63
-42
lines changed Original file line number Diff line number Diff line change @@ -11,69 +11,90 @@ var (
11
11
sprigFuncMap = sprig .FuncMap ()
12
12
13
13
// exportedSprigFunctions lists all of the functions from sprig that will be exposed
14
+ // ref: https://masterminds.github.io/sprig/
14
15
exportedSprigFunctions = []string {
15
- "add" ,
16
- "append" ,
16
+ // STRING
17
17
"cat" ,
18
- "concat" ,
19
18
"contains" ,
20
- "date" ,
21
- "default" ,
22
- "dict" ,
23
- "dig" ,
24
- "div" ,
25
- "empty" ,
26
- "fail" ,
27
- "fromJson" ,
28
- "get" ,
29
- "has" ,
30
- "hasKey" ,
31
19
"hasPrefix" ,
32
20
"hasSuffix" ,
33
- "htpasswd" ,
34
- "join" ,
35
- "list" ,
36
21
"lower" ,
37
- "merge" ,
38
- "mul" ,
39
- "mustAppend" ,
40
- "mustFromJson" ,
41
- "mustHas" ,
42
- "mustMerge" ,
43
- "mustPrepend" ,
44
22
"mustRegexFind" ,
45
23
"mustRegexFindAll" ,
46
24
"mustRegexMatch" ,
47
- "mustSlice" ,
48
- "mustToDate" ,
49
- "mustToRawJson" ,
50
- "now" ,
51
- "prepend" ,
52
25
"quote" ,
53
26
"regexFind" ,
54
27
"regexFindAll" ,
55
28
"regexMatch" ,
56
29
"regexQuoteMeta" ,
57
30
"replace" ,
58
- "round" ,
59
- "semver" ,
60
- "semverCompare" ,
61
- "set" ,
62
- "slice" ,
63
- "split" ,
64
- "splitn" ,
65
- "sub" ,
66
31
"substr" ,
67
- "ternary" ,
68
- "toDate" ,
69
- "toRawJson" ,
70
32
"trim" ,
71
33
"trimAll" ,
72
34
"trunc" ,
73
- "unset" ,
35
+ "upper" ,
36
+ // STRING LIST
37
+ "concat" ,
38
+ "join" ,
39
+ "split" ,
40
+ "splitn" ,
41
+ // INTEGER MATH
42
+ "add" ,
43
+ "div" ,
44
+ "mul" ,
45
+ "round" ,
46
+ "sub" ,
47
+ // INTEGER SLICE
74
48
"until" ,
75
49
"untilStep" ,
76
- "upper" ,
50
+ // FLOAT MATH
51
+ // --
52
+ // DATE
53
+ "date" ,
54
+ "mustToDate" ,
55
+ "now" ,
56
+ "toDate" ,
57
+ // DEFAULTS
58
+ "default" ,
59
+ "empty" ,
60
+ "fromJson" ,
61
+ "mustFromJson" ,
62
+ "mustToRawJson" ,
63
+ "ternary" ,
64
+ "toRawJson" ,
65
+ // ENCODING
66
+ // "b64enc" -- Implemented locally
67
+ // "b64dec" -- Implemented locally
68
+ // LISTS AND LIST
69
+ "append" ,
70
+ "has" ,
71
+ "list" ,
72
+ "mustAppend" ,
73
+ "mustHas" ,
74
+ "mustPrepend" ,
75
+ "prepend" ,
76
+ "mustSlice" ,
77
+ "slice" ,
78
+ // DICTIONARIES AND DICT
79
+ "dict" ,
80
+ "dig" ,
81
+ "get" ,
82
+ "hasKey" ,
83
+ "merge" ,
84
+ "mustMerge" ,
85
+ "set" ,
86
+ "unset" ,
87
+ // TYPE CONVERSION
88
+ // "atoi" -- Implemented locally
89
+ // PATH AND FILEPATH
90
+ // --
91
+ // FLOW CONTROL
92
+ "fail" ,
93
+ // VERSION COMPARISON
94
+ "semver" ,
95
+ "semverCompare" ,
96
+ // CRYPTOGRAPHIC AND SECURITY
97
+ "htpasswd" ,
77
98
}
78
99
)
79
100
You can’t perform that action at this time.
0 commit comments