Vendor dependencies

This commit is contained in:
Alexander Neumann
2016-12-28 21:41:04 +01:00
committed by Zlatko Čalušić
parent 2f0a16d8b7
commit 6054876201
541 changed files with 139974 additions and 0 deletions

19
vendor/goji.io/dispatch.go generated vendored Normal file
View File

@@ -0,0 +1,19 @@
package goji
import (
"net/http"
"goji.io/internal"
)
type dispatch struct{}
func (d dispatch) ServeHTTP(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
h := ctx.Value(internal.Handler)
if h == nil {
http.NotFound(w, r)
} else {
h.(http.Handler).ServeHTTP(w, r)
}
}