From eec3f7da658fcfd22432e955cea2146621df453b Mon Sep 17 00:00:00 2001 From: Darko Luketic Date: Tue, 6 Sep 2016 16:24:28 +0200 Subject: [PATCH] changed MiddlewareFunc signature --- i18n.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n.go b/i18n.go index 22fa7b4..018ce65 100644 --- a/i18n.go +++ b/i18n.go @@ -74,7 +74,7 @@ func (i *I18nMiddleware) Middleware(next http.Handler) http.Handler { }) } -func (i *I18nMiddleware) MiddlewareFunc(next http.Handler) http.HandlerFunc { +func (i *I18nMiddleware) MiddlewareFunc(next http.HandlerFunc) http.HandlerFunc { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { bycookie := false lang := r.URL.Query().Get(i.config.URLParam)