luci: go.chromium.org/luci/common/data/text/indented Index | Files

package indented

import "go.chromium.org/luci/common/data/text/indented"

Index

Package Files

writer.go

Constants

const Limit = 256

Limit is the maximum value of Level.

type Writer Uses

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 Uses

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.

Package indented imports 2 packages (graph) and is imported by 7 packages. Updated 2018-10-23. Refresh now. Tools for package owners.