func (w *PanicWriter) Write(p []byte) (int, error) {
	if 0 < w.spaces {
		p = append(bytes.Repeat([]byte(" "), int(w.spaces)), p...)
	}
	return w.inner.Write(p)
}
Write satisfies the io.Writer interface.
package io
import (
	"bytes"
	"fmt"
	"io"
)
type PanicWriter struct {
	inner io.Writer
	indentStepSize uint
	spaces         uint
}
func NewPanicWriter(writer io.Writer, indentStepSize uint) *PanicWriter {
	return &PanicWriter{inner: writer, indentStepSize: indentStepSize}
}