printer

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 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

func New() *Printer

New creates a new Printer.

func (*Printer) Initialize

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

Initialize initializes the padding of this printer.

func (Printer) PrintDirective

func (p Printer) PrintDirective(w io.Writer, directive ast.Directive) (n int, err error)

PrintDirective prints a directive to the given Writer.

func (*Printer) PrintLedger

func (p *Printer) PrintLedger(w io.Writer, l []*ast.Day) (int, error)

PrintLedger prints a Ledger.

Jump to

Keyboard shortcuts

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