Documentation
¶
Overview ¶
Package filters contains useful search filters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileAdvanceSearchSpec ¶
func CompileAdvanceSearchSpec(spec *AdvanceSearchSpec) goconsume.FilterFunc
CompileAdvanceSearchSpec compiles a search specification into a functional.Filterer object.
Types ¶
type AdvanceSearchSpec ¶
type AdvanceSearchSpec struct { Name string Desc string // If present, include only entries with line items that match CF. CF fin.CatFilter // If present, include only entries whose total matches AF. AF AmountFilter }
AdvanceSearchSpec specifies what entries to search for. searches ignore case and whitespace.
type AmountFilter ¶
AmountFilter filters by amount. Returns true if amt should be included or false otherwise.
Click to show internal directories.
Click to hide internal directories.