Documentation
¶
Index ¶
Constants ¶
View Source
const CsvDateFormat = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Transaction ¶
type Transaction struct { Date time.Time Type string Name string Email string Amt float32 FeeAmt float32 CurrencyCode string }
func NewTransaction ¶
func NewTransaction(row []string, headers []string) *Transaction
func TransactionsFromCsv ¶
func TransactionsFromCsv(name string) ([]*Transaction, error)
func (*Transaction) NetAmt ¶
func (t *Transaction) NetAmt() float32
func (*Transaction) String ¶
func (t *Transaction) String() string
Click to show internal directories.
Click to hide internal directories.