style: format all Go code

The code in //users/wpcarro/tools/monzo_ynab/ynab/client.go was not
valid Go and has been commented out.

Change-Id: Icb4003607f30294dcbf60132eb7722702c7f0d84
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4400
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
Vincent Ambo 2021-12-18 16:03:15 +03:00 committed by tazjin
parent d7bf4f07c9
commit 562236085b
5 changed files with 46 additions and 46 deletions

View file

@ -5,8 +5,8 @@ import (
"fmt"
"log"
"os"
"strings"
"sort"
"strings"
tea "github.com/charmbracelet/bubbletea"
lipgloss "github.com/charmbracelet/lipgloss"

View file

@ -10,8 +10,8 @@
package main
import (
"os"
"monzoSerde"
"os"
)
var (

View file

@ -4,21 +4,21 @@ import (
"serde"
)
// See requests.txt for more details.
func PostTransactions(accountID string, txs []serde.Transaction{}) error {
return map[string]string{
"transactions": [
{
"account_id": accountID,
"date": "2019-12-30",
"amount": 10000,
"payee_name": "Richard Stallman",
"memo": "Not so free software after all...",
"cleared": "cleared",
"approved": true,
"flag_color": "red",
"import_id": "xyz-123"
}
]
}
}
// // See requests.txt for more details.
// func PostTransactions(accountID string, txs []serde.Transaction{}) error {
// return map[string]string{
// "transactions": [
// {
// "account_id": accountID,
// "date": "2019-12-30",
// "amount": 10000,
// "payee_name": "Richard Stallman",
// "memo": "Not so free software after all...",
// "cleared": "cleared",
// "approved": true,
// "flag_color": "red",
// "import_id": "xyz-123"
// }
// ]
// }
// }