aboutsummaryrefslogtreecommitdiff
path: root/cmd/server/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/server/main.go')
-rw-r--r--cmd/server/main.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/server/main.go b/cmd/server/main.go
index ee8cf6f..29cffbf 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -7,7 +7,6 @@ import (
"net/http"
"os"
"strings"
- "text/template"
"time"
"github.com/gomodule/redigo/redis"
@@ -101,9 +100,7 @@ func main() { //nolint:funlen
os.Stderr.Write(b)
}
- page.Funcs = template.FuncMap{
- "ClearRedis": app.ClearRedis,
- }
+ page.Funcs["ClearRedis"] = app.ClearRedis
srv := &http.Server{
Handler: app,