go fmt fixes

This commit is contained in:
Kevin Cotugno 2017-09-08 10:57:16 -07:00
parent 31cf9cdf10
commit 8d3856af6b
2 changed files with 6 additions and 7 deletions

View File

@ -1,18 +1,17 @@
package main
import (
"github.com/shopspring/decimal"
"encoding/csv"
"log"
"fmt"
"github.com/shopspring/decimal"
"log"
"os"
"time"
"strconv"
"time"
"tacitus/postgres"
)
func main() {
client := postgres.NewClient()
client.Name = "gdax"

View File

@ -8,12 +8,12 @@ import (
const (
trade_columns = `trade_id, product, price, size, buy, sell, timestamp`
trade_insert = `INSERT INTO trades (` + trade_columns + `) VALUES ` +
trade_insert = `INSERT INTO trades (` + trade_columns + `) VALUES ` +
`($1, $2, $3, $4, $5, $6, $7) RETURNING id;`
trade_find = `SELECT id, ` + trade_columns + ` FROM trades WHERE id = $1;`
trade_find = `SELECT id, ` + trade_columns + ` FROM trades WHERE id = $1;`
trade_find_trade_id = `SELECT id, ` + trade_columns + ` FROM trades ` +
`WHERE trade_id = $1 AND product = $2;`
trade_delete = `DELETE FROM trades WHERE id = $1;`
trade_delete = `DELETE FROM trades WHERE id = $1;`
trades_in_date_range = `SELECT id, ` + trade_columns + ` FROM ` +
`trades WHERE product = $1 AND timestamp >= $2 AND timestamp < $3;`
trade_first = `SELECT id, ` + trade_columns + ` FROM trades WHERE ` +