linter fixes

This commit is contained in:
f0x 2021-07-08 15:41:08 +02:00
commit 51730f998d
3 changed files with 2 additions and 3 deletions

View file

@ -2,6 +2,7 @@ package router
import (
"fmt"
"html/template"
"os"
"path/filepath"
@ -27,7 +28,7 @@ func noescape(str string) template.HTML {
}
func loadTemplateFunctions(engine *gin.Engine) {
return r.engine.SetFuncMap(template.FuncMap{
engine.SetFuncMap(template.FuncMap{
"noescape": noescape,
})
}