@@ -26,6 +26,79 @@ type Template interface {
2626}
2727
2828// EgBase -- EasyGen Template Base
29+ /*
30+
31+ stringsCompare is wrapper for strings.Compare
32+ stringsContains is wrapper for strings.Contains
33+ stringsContainsAny is wrapper for strings.ContainsAny
34+ stringsContainsRune is wrapper for strings.ContainsRune
35+ stringsCount is wrapper for strings.Count
36+ stringsEqualFold is wrapper for strings.EqualFold
37+ stringsFields is wrapper for strings.Fields
38+ stringsFieldsFunc is wrapper for strings.FieldsFunc
39+ stringsHasPrefix is wrapper for strings.HasPrefix
40+ stringsHasSuffix is wrapper for strings.HasSuffix
41+ stringsIndex is wrapper for strings.Index
42+ stringsIndexAny is wrapper for strings.IndexAny
43+ stringsIndexByte is wrapper for strings.IndexByte
44+ stringsIndexFunc is wrapper for strings.IndexFunc
45+ stringsIndexRune is wrapper for strings.IndexRune
46+ stringsJoin is wrapper for strings.Join
47+ stringsLastIndex is wrapper for strings.LastIndex
48+ stringsLastIndexAny is wrapper for strings.LastIndexAny
49+ stringsLastIndexByte is wrapper for strings.LastIndexByte
50+ stringsLastIndexFunc is wrapper for strings.LastIndexFunc
51+ stringsMap is wrapper for strings.Map
52+ stringsRepeat is wrapper for strings.Repeat
53+ stringsReplace is wrapper for strings.Replace
54+ stringsSplit is wrapper for strings.Split
55+ stringsSplitAfter is wrapper for strings.SplitAfter
56+ stringsSplitAfterN is wrapper for strings.SplitAfterN
57+ stringsSplitN is wrapper for strings.SplitN
58+ stringsTitle is wrapper for strings.Title
59+ stringsToLower is wrapper for strings.ToLower
60+ stringsToLowerSpecial is wrapper for strings.ToLowerSpecial
61+ stringsToTitle is wrapper for strings.ToTitle
62+ stringsToTitleSpecial is wrapper for strings.ToTitleSpecial
63+ stringsToUpper is wrapper for strings.ToUpper
64+ stringsToUpperSpecial is wrapper for strings.ToUpperSpecial
65+ stringsTrim is wrapper for strings.Trim
66+ stringsTrimFunc is wrapper for strings.TrimFunc
67+ stringsTrimLeft is wrapper for strings.TrimLeft
68+ stringsTrimLeftFunc is wrapper for strings.TrimLeftFunc
69+ stringsTrimPrefix is wrapper for strings.TrimPrefix
70+ stringsTrimRight is wrapper for strings.TrimRight
71+ stringsTrimRightFunc is wrapper for strings.TrimRightFunc
72+ stringsTrimSpace is wrapper for strings.TrimSpace
73+ stringsTrimSuffix is wrapper for strings.TrimSuffix
74+
75+ eqf is wrapper for strings.EqualFold
76+ split is wrapper for strings.Fields
77+
78+ regexpFindAllString is template function for RegexpFindAllString
79+ regexpFindAllStringIndex is template function for RegexpFindAllStringIndex
80+ regexpFindAllStringSubmatch is template function for RegexpFindAllStringSubmatch
81+ regexpFindAllStringSubmatchIndex is template function for RegexpFindAllStringSubmatchIndex
82+ regexpFindString is template function for RegexpFindString
83+ regexpFindStringIndex is template function for RegexpFindStringIndex
84+ regexpFindStringSubmatch is template function for RegexpFindStringSubmatch
85+ regexpFindStringSubmatchIndex is template function for RegexpFindStringSubmatchIndex
86+ regexpMatchString is template function for RegexpMatchString
87+ regexpReplaceAllLiteralString is template function for RegexpReplaceAllLiteralString
88+ regexpReplaceAllString is template function for RegexpReplaceAllString
89+ regexpReplaceAllStringFunc is template function for RegexpReplaceAllStringFunc
90+ regexpSplit is template function for RegexpSplit
91+
92+ ENV is template function for os.Getenv
93+ substr is template function for Substr
94+ coalesce is template function for Coalesce
95+ quote4shell is template function for Quote4shell
96+
97+ minus1 is template function for Minus1
98+ date is template function for Date
99+ timestamp is template function for Timestamp
100+
101+ */
29102type EgBase struct {
30103 * template.Template
31104}
@@ -85,29 +158,29 @@ var egFuncMap = FuncMap{
85158 "split" : strings .Fields ,
86159
87160 // == standard regexp function definitions
88- "regexpFindAllString" : regexpFindAllString ,
89- "regexpFindAllStringIndex" : regexpFindAllStringIndex ,
90- "regexpFindAllStringSubmatch" : regexpFindAllStringSubmatch ,
91- "regexpFindAllStringSubmatchIndex" : regexpFindAllStringSubmatchIndex ,
92- "regexpFindString" : regexpFindString ,
93- "regexpFindStringIndex" : regexpFindStringIndex ,
94- "regexpFindStringSubmatch" : regexpFindStringSubmatch ,
95- "regexpFindStringSubmatchIndex" : regexpFindStringSubmatchIndex ,
96- "regexpMatchString" : regexpMatchString ,
97- "regexpReplaceAllLiteralString" : regexpReplaceAllLiteralString ,
98- "regexpReplaceAllString" : regexpReplaceAllString ,
99- "regexpReplaceAllStringFunc" : regexpReplaceAllStringFunc ,
100- "regexpSplit" : regexpSplit ,
161+ "regexpFindAllString" : RegexpFindAllString ,
162+ "regexpFindAllStringIndex" : RegexpFindAllStringIndex ,
163+ "regexpFindAllStringSubmatch" : RegexpFindAllStringSubmatch ,
164+ "regexpFindAllStringSubmatchIndex" : RegexpFindAllStringSubmatchIndex ,
165+ "regexpFindString" : RegexpFindString ,
166+ "regexpFindStringIndex" : RegexpFindStringIndex ,
167+ "regexpFindStringSubmatch" : RegexpFindStringSubmatch ,
168+ "regexpFindStringSubmatchIndex" : RegexpFindStringSubmatchIndex ,
169+ "regexpMatchString" : RegexpMatchString ,
170+ "regexpReplaceAllLiteralString" : RegexpReplaceAllLiteralString ,
171+ "regexpReplaceAllString" : RegexpReplaceAllString ,
172+ "regexpReplaceAllStringFunc" : RegexpReplaceAllStringFunc ,
173+ "regexpSplit" : RegexpSplit ,
101174
102175 // == my added functions
103176 "ENV" : os .Getenv ,
104177 "substr" : Substr ,
105- "coalesce" : coalesce ,
106- "quote4shell" : quote4shell ,
178+ "coalesce" : Coalesce ,
179+ "quote4shell" : Quote4shell ,
107180
108- "minus1" : minus1 ,
109- "date" : date ,
110- "timestamp" : timestamp ,
181+ "minus1" : Minus1 ,
182+ "date" : Date ,
183+ "timestamp" : Timestamp ,
111184}
112185
113186////////////////////////////////////////////////////////////////////////////
0 commit comments