ledger

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HLedgerCLI added in v0.3.6

type HLedgerCLI struct{}

func (HLedgerCLI) Parse added in v0.3.6

func (HLedgerCLI) Parse(journalPath string, prices []price.Price) ([]*posting.Posting, error)

func (HLedgerCLI) Prices added in v0.3.9

func (HLedgerCLI) Prices(journalPath string) ([]price.Price, error)

func (HLedgerCLI) ValidateFile added in v0.3.6

func (HLedgerCLI) ValidateFile(journalPath string) ([]LedgerFileError, string, error)

type Ledger added in v0.3.6

type Ledger interface {
	ValidateFile(journalPath string) ([]LedgerFileError, string, error)
	Parse(journalPath string, prices []price.Price) ([]*posting.Posting, error)
	Prices(jornalPath string) ([]price.Price, error)
}

func Cli added in v0.3.6

func Cli() Ledger

type LedgerCLI added in v0.3.6

type LedgerCLI struct{}

func (LedgerCLI) Parse added in v0.3.6

func (LedgerCLI) Parse(journalPath string, _prices []price.Price) ([]*posting.Posting, error)

func (LedgerCLI) Prices added in v0.3.9

func (LedgerCLI) Prices(journalPath string) ([]price.Price, error)

func (LedgerCLI) ValidateFile added in v0.3.6

func (LedgerCLI) ValidateFile(journalPath string) ([]LedgerFileError, string, error)

type LedgerFileError added in v0.3.1

type LedgerFileError struct {
	LineFrom uint64 `json:"line_from"`
	LineTo   uint64 `json:"line_to"`
	Error    string `json:"error"`
	Message  string `json:"message"`
}

Jump to

Keyboard shortcuts

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