printer

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 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 Printer

type Printer struct {
	Padding int
}

Printer prints directives.

func New added in v0.0.9

func New() *Printer

New creates a new Printer.

func (*Printer) Initialize added in v0.0.9

func (p *Printer) Initialize(directive []ledger.Directive)

Initialize initializes the padding of this printer.

func (Printer) PrintDirective

func (p Printer) PrintDirective(w io.Writer, directive interface{}) (n int, err error)

PrintDirective prints a directive to the given Writer.

func (*Printer) PrintLedger

func (p *Printer) PrintLedger(w io.Writer, l ledger.Ledger) (int, error)

PrintLedger prints a Ledger.

Jump to

Keyboard shortcuts

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