From e385dfd8a45f615c8627d2a37c275310c2fa0490 Mon Sep 17 00:00:00 2001 From: Arne Bahlo Date: Mon, 6 Jul 2015 15:20:07 +0200 Subject: [PATCH] Make notFoundHandler a HandlerFunc --- goat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goat.go b/goat.go index 3da7684..d01dd76 100644 --- a/goat.go +++ b/goat.go @@ -12,7 +12,7 @@ func New() *Router { r.index = make(map[string]string) r.prefix = "/" r.router = httprouter.New() - r.router.NotFound = r.notFoundHandler + r.router.NotFound = http.HandlerFunc(r.notFoundHandler) return r }