code: func (w *Writer) Reset(writer io.Writer) (err error) {
  	w.seq++
  	if w.err == nil {
  		w.writePending()
  		err = w.err
  	}
  	w.w = writer
  	w.f, _ = writer.(flusher)
  	w.i = 0
  	w.j = 0
  	w.written = 0
  	w.first = false
  	w.pending = false
  	w.err = nil
  	return
  }
docs: // Reset resets the journal writer, allows reuse of the journal writer. Reset
  // will also closes the journal writer if not already.