Fix comment and add csv example

This commit is contained in:
Jan Bader 2022-02-23 19:21:29 +00:00
parent eeb2d425e5
commit 2adb70fa01

View File

@ -116,7 +116,9 @@ type Transfer struct {
ToAccount string ToAccount string
} }
// ImportTransactions expects a TSV-file as exported by YNAB. // ImportTransactions expects a TSV-file as exported by YNAB in the following format:
// "Account" "Flag" "Date" "Payee" "Category Group/Category" "Category Group" "Category" "Memo" "Outflow" "Inflow" "Cleared"
// "Cash" "" "11.12.2021" "Transfer : Checking" "" "" "" "Brought to bank" 500,00€ 0,00€ "Cleared"
func (ynab *YNABImport) ImportTransactions(context context.Context, r io.Reader) error { func (ynab *YNABImport) ImportTransactions(context context.Context, r io.Reader) error {
csv := csv.NewReader(r) csv := csv.NewReader(r)
csv.Comma = '\t' csv.Comma = '\t'