add dep management

This commit is contained in:
fengzhiqiang
2019-01-08 10:50:41 +08:00
parent c7810090da
commit 58ccc8c9a8
439 changed files with 235757 additions and 6 deletions
+21
View File
@@ -0,0 +1,21 @@
// +build go1.8
package handlers
import (
"fmt"
"net/http"
)
type loggingResponseWriter interface {
commonLoggingResponseWriter
http.Pusher
}
func (l *responseLogger) Push(target string, opts *http.PushOptions) error {
p, ok := l.w.(http.Pusher)
if !ok {
return fmt.Errorf("responseLogger does not implement http.Pusher")
}
return p.Push(target, opts)
}