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 ( import (
"context" "context"
"fmt" "fmt"
"html/template"
"net/http" "net/http"
"time" "time"

View file

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

View file

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