mirror of
https://github.com/go-task/task.git
synced 2024-12-16 10:59:23 +02:00
22 lines
275 B
Go
22 lines
275 B
Go
|
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
|
||
|
}
|