Added sparse file support
This commit is contained in:
parent
9d6356e8a9
commit
60691d09ed
10 changed files with 32 additions and 37 deletions
7
src/test/Discard.go
Normal file
7
src/test/Discard.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package test
|
||||
|
||||
// Discard implements a no-op WriteSeeker.
|
||||
type Discard struct{}
|
||||
|
||||
func (w *Discard) Write(_ []byte) (int, error) { return 0, nil }
|
||||
func (w *Discard) Seek(_ int64, _ int) (int64, error) { return 0, nil }
|
Loading…
Add table
Add a link
Reference in a new issue