code: func (r *renderedError) dumpTo(w io.Writer, excludePkgs ...string) (n int, err error) {
  	return iotools.WriteTracker(w, func(w io.Writer) error {
  		if r.originalError != "" {
  			fmt.Fprintf(w, "original error: %s\n\n", r.originalError)
  		}
  
  		for i := len(r.stacks) - 1; i >= 0; i-- {
  			if i != len(r.stacks)-1 {
  				w.Write(nlSlice)
  			}
  			r.stacks[i].dumpTo(w, excludePkgs...)
  		}
  		return nil
  	})
  }
docs: // dumpTo writes the full-information stack trace to the writer.