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

@ -21,7 +21,6 @@ package router
import (
"context"
"fmt"
"html/template"
"net/http"
"time"

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,
})
}

View file

@ -20,7 +20,6 @@ package web
import (
"fmt"
"html/template"
"net/http"
"os"
"path/filepath"