| 1 | package bufferscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/ |
| 2 | |
| 3 | import ( |
| 4 | "encoding/gobscip-go gomod github.com/golang/go/src go1.13 `encoding/gob`/" |
| 5 | "ioscip-go gomod github.com/golang/go/src go1.13 io/" |
| 6 | "io/ioutilscip-go gomod github.com/golang/go/src go1.13 `io/ioutil`/" |
| 7 | "mathscip-go gomod github.com/golang/go/src go1.13 math/" |
| 8 | ) |
| 9 | |
| 10 | type discardscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard# struct{} |
| 11 | |
| 12 | // Discard is a Buffer which writes to ioutil.Discard and read's return 0, io.EOF. |
| 13 | // All of its methods are concurrent safe. |
| 14 | var Discardscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/Discard. Bufferscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/Buffer# = discardscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#{} |
| 15 | |
| 16 | func (buf discardscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#) Lenscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#Len().() int64 { |
| 17 | return 0 |
| 18 | } |
| 19 | |
| 20 | func (buf discardscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#) Capscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#Cap().() int64 { |
| 21 | return mathscip-go gomod github.com/golang/go/src go1.13 math/.MaxInt64scip-go gomod github.com/golang/go/src go1.13 math/MaxInt64. |
| 22 | } |
| 23 | |
| 24 | func (buf discardscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#) Resetscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#Reset().() {} |
| 25 | |
| 26 | func (buf discardscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#) Readscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#Read().(p []byte) (n int, err error) { |
| 27 | return 0, ioscip-go gomod github.com/golang/go/src go1.13 io/.EOFscip-go gomod github.com/golang/go/src go1.13 io/EOF. |
| 28 | } |
| 29 | |
| 30 | func (buf discardscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#) Writescip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#Write().(p []byte) (int, error) { |
| 31 | return ioutilscip-go gomod github.com/golang/go/src go1.13 `io/ioutil`/.Discardscip-go gomod github.com/golang/go/src go1.13 `io/ioutil`/Discard..Writescip-go gomod github.com/golang/go/src go1.13 io/Writer#Write().(p) |
| 32 | } |
| 33 | |
| 34 | func initscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/init().() { |
| 35 | gobscip-go gomod github.com/golang/go/src go1.13 `encoding/gob`/.Registerscip-go gomod github.com/golang/go/src go1.13 `encoding/gob`/Register().(&discardscip-go gomod github.com/djherbis/buffer . `github.com/djherbis/buffer`/discard#{}) |
| 36 | } |