Back to godoc.org

Package indented

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Index

Constants

const Limit = 256

Limit is the maximum value of Level.

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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier