printer

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 9 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 PrintKafkaResult added in v0.26.0

func PrintKafkaResult(opts *cli.Options, count int, msg kafka.Message, data []byte)
func PrintLogo()

func PrintNSQResult added in v0.27.0

func PrintNSQResult(opts *cli.Options, count int, msg *nsq.Message, data []byte)

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