From 2adb70fa01f904d0dcb31ad8f8cd122cbf8e63ce Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 23 Feb 2022 19:21:29 +0000 Subject: [PATCH] Fix comment and add csv example --- postgres/ynab-import.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/postgres/ynab-import.go b/postgres/ynab-import.go index 8aa512b..fd5f173 100644 --- a/postgres/ynab-import.go +++ b/postgres/ynab-import.go @@ -116,7 +116,9 @@ type Transfer struct { 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 { csv := csv.NewReader(r) csv.Comma = '\t'