Documentation ¶
Index ¶
- Constants
- func BalanceReport(iter RecordIterator, assets []*Account, output io.Writer)
- func ExpensesReport(iter RecordIterator, output io.Writer)
- func MonthlyBalanceReport(iter RecordIterator, assets []*Account, output io.Writer)
- func WeeklyExpensesReport(iter RecordIterator, assets []*Account, output io.Writer)
- type Account
- type AccountFilter
- type AmountFilter
- type Config
- type DateRangeFilter
- type FilteredIterator
- type LedgerIterator
- type Record
- type RecordFilter
- type RecordIterator
- type RecordType
Constants ¶
View Source
const ISO8601Date = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
func BalanceReport ¶
func BalanceReport(iter RecordIterator, assets []*Account, output io.Writer)
func ExpensesReport ¶
func ExpensesReport(iter RecordIterator, output io.Writer)
func MonthlyBalanceReport ¶
func MonthlyBalanceReport(iter RecordIterator, assets []*Account, output io.Writer)
func WeeklyExpensesReport ¶
func WeeklyExpensesReport(iter RecordIterator, assets []*Account, output io.Writer)
Types ¶
type Account ¶
func NewAccount ¶
type AccountFilter ¶
func (*AccountFilter) Filter ¶
func (f *AccountFilter) Filter(r *Record) *Record
type AmountFilter ¶
func (*AmountFilter) Filter ¶
func (f *AmountFilter) Filter(r *Record) *Record
type DateRangeFilter ¶
func (*DateRangeFilter) Filter ¶
func (f *DateRangeFilter) Filter(r *Record) *Record
type FilteredIterator ¶
type FilteredIterator struct {
// contains filtered or unexported fields
}
func NewFilteredIterator ¶
func NewFilteredIterator(iter RecordIterator, filters ...RecordFilter) *FilteredIterator
func (FilteredIterator) Next ¶
func (iter FilteredIterator) Next() *Record
type LedgerIterator ¶
type LedgerIterator struct {
// contains filtered or unexported fields
}
func NewLedgerIterator ¶
func NewLedgerIterator(assets []*Account, ledgerDir string) *LedgerIterator
func (*LedgerIterator) Next ¶
func (i *LedgerIterator) Next() *Record
type Record ¶
func (*Record) FormatAmount ¶
func (*Record) RecordType ¶
func (r *Record) RecordType() RecordType
type RecordFilter ¶
type RecordIterator ¶
type RecordIterator interface {
Next() *Record
}
type RecordType ¶
type RecordType int8
Click to show internal directories.
Click to hide internal directories.