parser

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser parses a journal

func New

func New(path string, r io.RuneReader) (*Parser, error)

New creates a new parser

func Open

func Open(path string) (*Parser, error)

Open creates a new parser for the given file.

func (*Parser) Next added in v0.0.8

func (p *Parser) Next() (ledger.Directive, error)

Next returns the next directive

func (*Parser) ParseAll added in v0.0.8

func (p *Parser) ParseAll() <-chan interface{}

ParseAll parses the entire stream asynchronously.

Jump to

Keyboard shortcuts

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