printer

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpandingPrinter

type ExpandingPrinter struct {
	Printer Printer
	// contains filtered or unexported fields
}

func (*ExpandingPrinter) BatchSize

func (p *ExpandingPrinter) BatchSize() int

func (*ExpandingPrinter) Footer

func (p *ExpandingPrinter) Footer()

func (*ExpandingPrinter) Header

func (p *ExpandingPrinter) Header(entity interface{})

func (*ExpandingPrinter) Print

func (p *ExpandingPrinter) Print(input []interface{})

type PrettyPrint

type PrettyPrint struct {
	Batch int
}

func (*PrettyPrint) BatchSize

func (p *PrettyPrint) BatchSize() int

func (*PrettyPrint) Footer

func (p *PrettyPrint) Footer()

func (*PrettyPrint) Header

func (p *PrettyPrint) Header(entity interface{})

func (*PrettyPrint) Print

func (p *PrettyPrint) Print(entities []interface{})

type Printer

type Printer interface {
	Print(entities []interface{})
	BatchSize() int
	Header(entity interface{})
	Footer()
}

type Raw

type Raw struct {
	Batch int
}

func (*Raw) BatchSize

func (r *Raw) BatchSize() int

func (*Raw) Footer

func (r *Raw) Footer()

func (*Raw) Header

func (r *Raw) Header(entity interface{})

func (*Raw) Print

func (r *Raw) Print(entities []interface{})

Jump to

Keyboard shortcuts

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