sync to the latest github/linguist v7.9.0

This commit is contained in:
Lauris BH
2020-03-21 21:16:52 +02:00
parent fa1c6f39b5
commit 9030d3671b
30 changed files with 52041 additions and 30895 deletions

View File

@ -106,7 +106,11 @@ func TestTemplateMatcherVars(t *testing.T) {
// render a tmpl
const contentTmpl = "../assets/content.go.tmpl"
tmpl, err := template.ParseFiles(contentTmpl)
tmpl, err := template.New("content.go.tmpl").Funcs(template.FuncMap{
"stringVal": func(val string) string {
return fmt.Sprintf("`%s`", val)
},
}).ParseFiles(contentTmpl)
require.NoError(t, err)
buf := bytes.NewBuffer(nil)