Bump gorilla/mux version.

This commit is contained in:
Ludovic Fernandez 2017-08-21 20:40:02 +02:00 committed by Traefiker
parent 3f650bbd11
commit 32b2736efd
7 changed files with 273 additions and 62 deletions

26
vendor/github.com/containous/mux/context_gorilla.go generated vendored Normal file
View file

@ -0,0 +1,26 @@
// +build !go1.7
package mux
import (
"net/http"
"github.com/gorilla/context"
)
func contextGet(r *http.Request, key interface{}) interface{} {
return context.Get(r, key)
}
func contextSet(r *http.Request, key, val interface{}) *http.Request {
if val == nil {
return r
}
context.Set(r, key, val)
return r
}
func contextClear(r *http.Request) {
context.Clear(r)
}