Mike Schwörer
3320a9c19d
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 4m25s
16 lines
200 B
Go
16 lines
200 B
Go
package langext
|
|
|
|
import "io"
|
|
|
|
type nopCloser struct {
|
|
io.Writer
|
|
}
|
|
|
|
func (n nopCloser) Close() error {
|
|
return nil // no op
|
|
}
|
|
|
|
func WriteNopCloser(w io.Writer) io.WriteCloser {
|
|
return nopCloser{w}
|
|
}
|