Lookup parts in strings using regexp.MatchString (#1452)

Signed-off-by: Waldemar Biller <wbiller@gmail.com>
This commit is contained in:
Waldemar Biller 2018-07-03 11:55:47 +02:00 committed by Brian Brazil
parent 98105b8360
commit 4e8a910b9d
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ var DefaultFuncs = FuncMap{
"join": func(sep string, s []string) string { "join": func(sep string, s []string) string {
return strings.Join(s, sep) return strings.Join(s, sep)
}, },
"match": regexp.MatchString,
"safeHtml": func(text string) tmplhtml.HTML { "safeHtml": func(text string) tmplhtml.HTML {
return tmplhtml.HTML(text) return tmplhtml.HTML(text)
}, },