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:
parent
d7bf4f07c9
commit
562236085b
5 changed files with 46 additions and 46 deletions
|
@ -333,7 +333,7 @@ func TestSetInvalidVariablesFromArguments(t *testing.T) {
|
|||
// This test ensures that variables are merged in the correct order.
|
||||
// Please consult the test data in `testdata/merging`.
|
||||
func TestValueMergePrecedence(t *testing.T) {
|
||||
cliVars:= []string{"cliVar=cliVar"}
|
||||
cliVars := []string{"cliVar=cliVar"}
|
||||
ctx, _ := LoadContext("testdata/merging/context.yaml", &cliVars)
|
||||
|
||||
expected := map[string]interface{}{
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
lipgloss "github.com/charmbracelet/lipgloss"
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"monzoSerde"
|
||||
"os"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -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"
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
|
|
Loading…
Reference in a new issue