func (n *NopWriteCloser) Write(buf []byte) (int, error) {
	return n.writer.Write(buf)
}
Write acts like io.Writer.Write
package util
import "io"
type NopWriteCloser struct {
	writer io.Writer
}
func PreventClosing(w io.Writer) *NopWriteCloser {
	return &NopWriteCloser{writer: w}
}