You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
180 B
Go
16 lines
180 B
Go
4 years ago
|
package iox
|
||
|
|
||
|
import "io"
|
||
|
|
||
|
type nopCloser struct {
|
||
|
io.Writer
|
||
|
}
|
||
|
|
||
|
func (nopCloser) Close() error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func NopCloser(w io.Writer) io.WriteCloser {
|
||
|
return nopCloser{w}
|
||
|
}
|