changed MiddlewareFunc signature
This commit is contained in:
parent
16b8f5de0b
commit
eec3f7da65
2
i18n.go
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user