printer

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(str string)

TODO: convert backends to use IPrinter methods Error is a convenience function for printing errors.

func Print

func Print(str string)

TODO: convert backends to use IPrinter methods Print is a convenience function for printing regular output.

func PrintLogo()

func PrintRelayOptions added in v0.15.0

func PrintRelayOptions(cmd string, opts *cli.Options)

Types

type IPrinter added in v0.16.0

type IPrinter interface {
	Error(str string)
	Print(str string)
}

type Printer added in v0.16.0

type Printer struct {
	PrintFunc func(format string, a ...interface{}) (n int, err error)
}

func New added in v0.16.0

func New() *Printer

func (*Printer) Error added in v0.16.0

func (p *Printer) Error(str string)

Error is a convenience function for printing errors.

func (*Printer) Print added in v0.16.0

func (p *Printer) Print(str string)

Print is a convenience function for printing regular output.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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