other

package
v0.0.0-...-0746445 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CsvDateFormat = "2006-01-02"

Variables

This section is empty.

Functions

func ReadCsv

func ReadCsv(name string) ([][]string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL