changed MiddlewareFunc signature
This commit is contained in:
parent
16b8f5de0b
commit
eec3f7da65
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue