printers

package
v0.28.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DyffPrinter

type DyffPrinter struct {
	OmitHeader bool
}

DyffPrinter is a printer that prints dyff reports.

func NewDyffPrinter

func NewDyffPrinter() *DyffPrinter

NewDyffPrinter returns a new DyffPrinter.

func (*DyffPrinter) Print

func (p *DyffPrinter) Print(w io.Writer, args ...interface{}) error

Print prints the given args to the given writer.

type Printer

type Printer interface {
	// Print prints the given args to the given writer.
	Print(io.Writer, ...interface{}) error
}

Printer is an interface for printing Flux cmd outputs.

type PrinterFunc

type PrinterFunc func(w io.Writer, args ...interface{}) error

PrinterFunc is a function that can print args to a writer.

func TablePrinter

func TablePrinter(header []string) PrinterFunc

TablePrinter is a printer that prints Flux cmd outputs.

func (PrinterFunc) Print

func (fn PrinterFunc) Print(w io.Writer, args ...interface{}) error

Print implements Printer

Jump to

Keyboard shortcuts

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