printer

package
Version: v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 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.

Source Files

Jump to

Keyboard shortcuts

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