indent

package
v0.0.0-...-2e69b07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	W io.Writer
	// contains filtered or unexported fields
}

Output : leveled output writer

func New

func New(w io.Writer) *Output

New :

func (*Output) Indent

func (w *Output) Indent()

Indent :

func (*Output) Newline

func (w *Output) Newline() (int, error)

Newline :

func (*Output) Printf

func (w *Output) Printf(format string, args ...interface{}) (int, error)

Printf :

func (*Output) Printfln

func (w *Output) Printfln(format string, args ...interface{}) (int, error)

Printfln :

func (*Output) Println

func (w *Output) Println(s string) (int, error)

Println :

func (*Output) UnIndent

func (w *Output) UnIndent()

UnIndent :

func (*Output) WithBlock

func (w *Output) WithBlock(prefix string, callback func())

WithBlock :

func (*Output) WithIfAndElse

func (w *Output) WithIfAndElse(prefix string, callback func(), callback2 func())

WithIfAndElse :

func (*Output) WithIndent

func (w *Output) WithIndent(prefix string, callback func())

WithIndent :

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL