code: func NewWriterOnError(w io.Writer, notify func(error)) io.Writer {
  	return &writerOnError{w, notify}
  }
docs: // NewWriterOnError returns a io.Writer that call the notify function when an
  // unexpected (!io.EOF) error happens, after call Write function.