Documentation ¶ Index ¶ Constants type Writer func (w *Writer) Write(data []byte) (n int, err error) Constants ¶ View Source const Limit = 256 Limit is the maximum value of Level. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Writer ¶ type Writer struct { io.Writer // underlying writer. Level int // number of times \t must be inserted before each line. UseSpaces bool // true iff Level is the number of spaces instead of tabs. // contains filtered or unexported fields } Writer inserts indentation before each line. func (*Writer) Write ¶ func (w *Writer) Write(data []byte) (n int, err error) Write writes data inserting a newline before each line. Panics if w.Indent is outside of [0, Limit) range. Source Files ¶ View all Source files writer.go Click to show internal directories. Click to hide internal directories.