1
0
mirror of https://github.com/go-task/task.git synced 2024-12-16 10:59:23 +02:00
task/vendor/mvdan.cc/sh/interp/dev.go

22 lines
275 B
Go
Raw Normal View History

package interp
import (
"io"
)
var _ io.ReadWriteCloser = devNull{}
type devNull struct{}
func (devNull) Read(_ []byte) (int, error) {
return 0, io.EOF
}
func (devNull) Write(p []byte) (int, error) {
return len(p), nil
}
func (devNull) Close() error {
return nil
}