Documentation
¶
Index ¶
- type Fields
- type Parser
- type Raw
- type Transaction
- func (tx Transaction) Account() string
- func (tx Transaction) Amount() float64
- func (tx Transaction) Card() string
- func (tx Transaction) Category() string
- func (tx Transaction) Date() time.Time
- func (tx Transaction) Name() string
- func (tx Transaction) String() string
- func (tx Transaction) User() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Raw ¶
type Raw struct { TransactionDate util.DateISO `csv:"Transaction Date"` PostedDate util.DateISO `csv:"Posted Date"` CardNumber string `csv:"Card No."` Description string `csv:"Description"` Category string `csv:"Category"` Debit float64 `csv:"Debit,omitempty"` Credit float64 `csv:"Credit,omitempty"` }
type Transaction ¶
type Transaction struct { Fields // computed fields, namespaced so they don't conflict with the interface methods Raw // raw fields from the csv }
func (Transaction) Account ¶
func (tx Transaction) Account() string
func (Transaction) Amount ¶
func (tx Transaction) Amount() float64
func (Transaction) Card ¶
func (tx Transaction) Card() string
func (Transaction) Category ¶
func (tx Transaction) Category() string
func (Transaction) Date ¶
func (tx Transaction) Date() time.Time
func (Transaction) Name ¶
func (tx Transaction) Name() string
func (Transaction) String ¶
func (tx Transaction) String() string
func (Transaction) User ¶
func (tx Transaction) User() string
Click to show internal directories.
Click to hide internal directories.