Documentation ¶
Index ¶
- func AccountMatches(regexes []*regexp.Regexp) predicate.Predicate[Key]
- func CommodityMatches(regexes []*regexp.Regexp) predicate.Predicate[Key]
- func FilterDates(pred predicate.Predicate[time.Time]) predicate.Predicate[Key]
- func OtherAccountMatches(regexes []*regexp.Regexp) predicate.Predicate[Key]
- type Amounts
- func (am Amounts) Add(key Key, value decimal.Decimal)
- func (am Amounts) Amount(key Key) decimal.Decimal
- func (am Amounts) Clone() Amounts
- func (am Amounts) Commodities() set.Set[*model.Commodity]
- func (am Amounts) CommoditiesSorted() []*model.Commodity
- func (am Amounts) Dates() set.Set[time.Time]
- func (am Amounts) DatesSorted() []time.Time
- func (am Amounts) Index(cmp compare.Compare[Key]) []Key
- func (am Amounts) Minus(other Amounts)
- func (am Amounts) Plus(other Amounts)
- func (am Amounts) SumBy(pred func(k Key) bool, mapr func(k Key) Key) Amounts
- func (am Amounts) SumIntoBy(dest Amounts, pred func(k Key) bool, mapr func(k Key) Key)
- func (am Amounts) SumOver(pred func(k Key) bool) decimal.Decimal
- type Key
- type KeyMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Amounts ¶
Amounts keeps track of amounts by account and commodity.
func (Amounts) CommoditiesSorted ¶
func (Amounts) DatesSorted ¶
Click to show internal directories.
Click to hide internal directories.