Documentation ¶
Overview ¶
Package qif contains functions to parse transaction data presented in the QIF format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrEOF = errors.New("QIF end of file")
ErrEOF is a condition used to signal that the parser reached the end of a QIF file.
Functions ¶
Types ¶
type ErrNotSupported ¶
type ErrNotSupported struct {
Desc string
}
ErrNotSupported is returned if a QIF field type is encountered that this parser doesn't support.
func (*ErrNotSupported) Error ¶
func (e *ErrNotSupported) Error() string
type QIF ¶
type QIF struct {
// contains filtered or unexported fields
}
QIF contains the scan state for a set of records in QIF format.
type Record ¶
type Record struct { Type string Date string Amount string Number string Cleared string Payee string Label string Memo string Splits []*Split Transfer bool }
Record groups the QIF attributes for a single transaction read in QIF format.
type RecordSet ¶
RecordSet is a group of QIF Records, with the opening Record separated.
func NewRecordSet ¶
NewRecordSet returns a RecordSet for QIF records read from the given io.Reader. Character set conversion from input to UTF-8 is performed by dec.
func (*RecordSet) AccountName ¶
AccountName returns the name of the account described by the opening record of the RecordSet.