We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd8c96 commit 4c8fdedCopy full SHA for 4c8fded
template.go
@@ -174,10 +174,6 @@ func hasPrefix(prefix, s string) bool {
174
return strings.HasPrefix(s, prefix)
175
}
176
177
-func parseBool(s string) (bool, error) {
178
- return strconv.ParseBool(s)
179
-}
180
-
181
// hasSuffix returns whether a given string is a suffix of another string
182
func hasSuffix(suffix, s string) bool {
183
return strings.HasSuffix(s, suffix)
@@ -351,7 +347,7 @@ func newTemplate(name string) *template.Template {
351
347
"keys": keys,
352
348
"last": arrayLast,
353
349
"replace": strings.Replace,
354
- "parseBool": parseBool,
350
+ "parseBool": strconv.ParseBool,
355
"parseJson": unmarshalJson,
356
"queryEscape": url.QueryEscape,
357
"sha1": hashSha1,
0 commit comments