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:
Adrian Gallagher
2025-03-18 10:23:16 +11:00
committed by GitHub
parent 748ed71455
commit f5faca2eb2
189 changed files with 1541 additions and 1104 deletions

View File

@@ -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)

View File

@@ -31,7 +31,8 @@ func TestLoadCandles(t *testing.T) {
Enabled: currency.Pairs{cp},
AssetEnabled: true,
ConfigFormat: &currency.PairFormat{Uppercase: true},
RequestFormat: &currency.PairFormat{Uppercase: true}}
RequestFormat: &currency.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: &currency.PairFormat{Uppercase: true},
RequestFormat: &currency.PairFormat{Uppercase: true}}
RequestFormat: &currency.PairFormat{Uppercase: true},
}
interval := gctkline.OneMin
tt1 := time.Now().Add(-time.Minute * 10).Round(interval.Duration())
tt2 := time.Now().Round(interval.Duration())