зеркало из https://github.com/microsoft/docker.git
23 строки
260 B
Go
23 строки
260 B
Go
|
package tarsum
|
||
|
|
||
|
import (
|
||
|
"io"
|
||
|
)
|
||
|
|
||
|
type writeCloseFlusher interface {
|
||
|
io.WriteCloser
|
||
|
Flush() error
|
||
|
}
|
||
|
|
||
|
type nopCloseFlusher struct {
|
||
|
io.Writer
|
||
|
}
|
||
|
|
||
|
func (n *nopCloseFlusher) Close() error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (n *nopCloseFlusher) Flush() error {
|
||
|
return nil
|
||
|
}
|