Versions in this module Expand all Collapse all v0 v0.1.2 Sep 12, 2024 Changes in this version + func FromStream(reg *registry.Registry, inCh <-chan syntax.File) (<-chan []Directive, func(context.Context) error) + type Account = account.Account + type AccountType = account.Type + type Balance = assertion.Balance + type Commodity = commodity.Commodity type Directive + func ParseDirective(reg *registry.Registry, w syntax.Directive) ([]Directive, error) + type Registry = registry.Registry + type Result struct + Directives []any + Err error v0.0.12 Aug 24, 2021 v0.0.11 Jul 31, 2021 v0.0.10 Feb 10, 2021 v0.0.9 Feb 10, 2021 v0.0.8 Jan 25, 2021 v0.0.7 Jan 15, 2021 v0.0.6 Jan 7, 2021 Changes in this version + type FilePosition struct + BytePos int + Column int + Line int + Path string + RunePos int + func (p FilePosition) String() string v0.0.5 Dec 10, 2020 v0.0.4 Dec 7, 2020 v0.0.3 Dec 2, 2020 v0.0.2 Dec 1, 2020 v0.0.1 Dec 1, 2020 Changes in this version + type Assertion struct + Account *accounts.Account + Amount decimal.Decimal + Commodity *commodities.Commodity + func (a Assertion) WriteTo(w io.Writer) (int64, error) + type Close struct + Account *accounts.Account + func (c Close) WriteTo(b io.Writer) (int64, error) + type CommodityAccount struct + func NewCommodityAccount(a *accounts.Account, c *commodities.Commodity) CommodityAccount + func (p CommodityAccount) Account() *accounts.Account + func (p CommodityAccount) Commodity() *commodities.Commodity + func (p CommodityAccount) Less(p1 CommodityAccount) bool + type Directive struct + Pos Range + func NewDirective(pos Range, date time.Time) Directive + func (d Directive) Date() time.Time + func (d Directive) Position() Range + type Include struct + Path string + func (i Include) WriteTo(w io.Writer) (int64, error) + type Lot struct + Commodity *commodities.Commodity + Date time.Time + Label string + Price float64 + func (l Lot) WriteTo(b io.Writer) (int64, error) + type Open struct + Account *accounts.Account + func (o Open) WriteTo(b io.Writer) (int64, error) + type Position struct + Amounts amount.Vec + type Posting struct + Amount amount.Amount + Commodity *commodities.Commodity + Credit *accounts.Account + Debit *accounts.Account + Lot *Lot + Tag *Tag + func NewPosting(crAccount, drAccount *accounts.Account, commodity *commodities.Commodity, ...) *Posting + func (t Posting) WriteTo(b io.Writer) (int64, error) + type Price struct + Commodity *commodities.Commodity + Price float64 + Target *commodities.Commodity + func (p Price) WriteTo(w io.Writer) (int64, error) + type Range struct + End int + Start int + type Tag string + func (t Tag) String() string + type Transaction struct + Description string + Postings []*Posting + Tags []Tag + func (t Transaction) WriteTo(b io.Writer) (int64, error) + type Value struct + Account *accounts.Account + Amount decimal.Decimal + Commodity *commodities.Commodity + func (a Value) WriteTo(w io.Writer) (int64, error)