mirror of
https://github.com/documize/community.git
synced 2025-07-22 06:39:43 +02:00
go dep
Migrated from plain /vendor to go dep
This commit is contained in:
parent
0262763c95
commit
fd693f4ff4
957 changed files with 36866 additions and 177595 deletions
16
vendor/github.com/codegangsta/negroni/response_writer_pusher.go
generated
vendored
Normal file
16
vendor/github.com/codegangsta/negroni/response_writer_pusher.go
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
//+build go1.8
|
||||
|
||||
package negroni
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func (rw *responseWriter) Push(target string, opts *http.PushOptions) error {
|
||||
pusher, ok := rw.ResponseWriter.(http.Pusher)
|
||||
if ok {
|
||||
return pusher.Push(target, opts)
|
||||
}
|
||||
return fmt.Errorf("the ResponseWriter doesn't support the Pusher interface")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue