reporters

package
v0.0.0-...-d79b3d1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Quiet

type Quiet struct {
}

Quiet is a reporter that do not output anything.

func (*Quiet) Line

func (q *Quiet) Line(args ...interface{})

func (*Quiet) Linef

func (q *Quiet) Linef(fmt string, args ...interface{})

type Reporter

type Reporter interface {
	Linef(fmt string, args ...interface{})
	Line(args ...interface{})
}

func SubReporter

func SubReporter(reporter Reporter) Reporter

func WithPrefix

func WithPrefix(reporter Reporter, prefix string) Reporter

WithPrefix creates a new reporter with a prefix for all lines.

type Verbose

type Verbose struct {
}

Verbose enable the output logging.

func (*Verbose) Line

func (q *Verbose) Line(args ...interface{})

func (*Verbose) Linef

func (q *Verbose) Linef(format string, args ...interface{})

Jump to

Keyboard shortcuts

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