Documentation ¶
Index ¶
- Constants
- Variables
- func FindLabel(memo string) string
- func RemoveLabel(labelName string) error
- type Entry
- type FileSource
- type Label
- type Ledger
- func (l *Ledger) Entries() []Entry
- func (l *Ledger) EntriesWithPattern(re *regexp.Regexp) []*Entry
- func (l *Ledger) InsertEntries(entries []Entry)
- func (l Ledger) Len() int
- func (l Ledger) Less(i, j int) bool
- func (l Ledger) Swap(i, j int)
- func (l *Ledger) TrackPattern(re *regexp.Regexp)
- func (l *Ledger) UpdateFromSources(allSources []Source) error
- type Source
- type SourceType
Constants ¶
View Source
const ( IDIndex int = iota DateIndex SourceNameIndex SourceTypeIndex PersonIndex MemoIndex ValueIndex TypeIndex BalanceIndex LabelIndex NotesIndex FieldCount SwapTableStart )
Variables ¶
View Source
var (
Columns = new([FieldCount]string)
)
Functions ¶
func RemoveLabel ¶
Types ¶
type FileSource ¶
type FileSource interface { }
type Label ¶
func AddLabelKeywords ¶
func RemoveLabelKeywords ¶
RemoveLabelKeywords removes the given keywords from the label with name labelName and saves the change to file
type Ledger ¶
type Ledger struct { Year int // contains filtered or unexported fields }
func (*Ledger) InsertEntries ¶
func (*Ledger) TrackPattern ¶
func (*Ledger) UpdateFromSources ¶
type Source ¶
type Source interface { Name() string Type() SourceType GetLedgerEntries(year int) ([]Entry, error) }
func AllSources ¶
func AllSources() []Source
type SourceType ¶
type SourceType string
const ( VenmoSourceType SourceType = "VENMO" ChaseSourceType SourceType = "CHASE" )
Click to show internal directories.
Click to hide internal directories.