parser

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: Apache-2.0 Imports: 15 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 FromPath added in v0.0.11

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

FromPath creates a new parser for the given file.

func New

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

New creates a new parser

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