mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-31 15:10:42 +00:00
linter: Enable gofumpt and run against codebase (#1848)
* linter: Enable gofumpt and run against codebase * Address shazbert's nits * gofumpt: Fix issues after rebase
This commit is contained in:
@@ -16,8 +16,10 @@ import (
|
||||
gctkline "github.com/thrasher-corp/gocryptotrader/exchanges/kline"
|
||||
)
|
||||
|
||||
const exch = "binance"
|
||||
const a = asset.Spot
|
||||
const (
|
||||
exch = "binance"
|
||||
a = asset.Spot
|
||||
)
|
||||
|
||||
var p = currency.NewPair(currency.BTC, currency.USD)
|
||||
|
||||
|
||||
@@ -31,7 +31,8 @@ func TestLoadCandles(t *testing.T) {
|
||||
Enabled: currency.Pairs{cp},
|
||||
AssetEnabled: true,
|
||||
ConfigFormat: ¤cy.PairFormat{Uppercase: true},
|
||||
RequestFormat: ¤cy.PairFormat{Uppercase: true}}
|
||||
RequestFormat: ¤cy.PairFormat{Uppercase: true},
|
||||
}
|
||||
tt1 := time.Now().Add(-time.Minute).Round(gctkline.OneMin.Duration())
|
||||
tt2 := time.Now().Round(gctkline.OneMin.Duration())
|
||||
interval := gctkline.OneMin
|
||||
@@ -69,7 +70,8 @@ func TestLoadTrades(t *testing.T) {
|
||||
Enabled: currency.Pairs{cp},
|
||||
AssetEnabled: true,
|
||||
ConfigFormat: ¤cy.PairFormat{Uppercase: true},
|
||||
RequestFormat: ¤cy.PairFormat{Uppercase: true}}
|
||||
RequestFormat: ¤cy.PairFormat{Uppercase: true},
|
||||
}
|
||||
interval := gctkline.OneMin
|
||||
tt1 := time.Now().Add(-time.Minute * 10).Round(interval.Duration())
|
||||
tt2 := time.Now().Round(interval.Duration())
|
||||
|
||||
Reference in New Issue
Block a user