terminal

package
v0.0.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter struct {
	Severity contract.Severity
	Writer   io.Writer
}

Reporter represents the terminal reporter

func (*Reporter) Error

func (r *Reporter) Error(msg string, args ...interface{})

Error reports a error level

func (*Reporter) Info

func (r *Reporter) Info(msg string, args ...interface{})

Info writes a info

func (*Reporter) Notice

func (r *Reporter) Notice(msg string, args ...interface{})

Notice prints a notice message

func (*Reporter) Success

func (r *Reporter) Success(msg string, args ...interface{})

Success writes a success

func (*Reporter) Warn

func (r *Reporter) Warn(msg string, args ...interface{})

Warn reports a warn level

func (*Reporter) With

func (r *Reporter) With(value contract.Severity) contract.Reporter

With return a reporter with severity

Jump to

Keyboard shortcuts

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