CI/build: Update Go version, linters and fix minor issues (#1612)

* CI/build: Update Go version, linters and fix minor issues

* linters: Add intrange, copyloopvar, additional go vet linters to match gopls and fix issues
This commit is contained in:
Adrian Gallagher
2024-08-16 17:41:11 +10:00
committed by GitHub
parent facf291069
commit 225429bda6
111 changed files with 239 additions and 379 deletions

View File

@@ -638,7 +638,7 @@ func getOrderbookStream(c *cli.Context) error {
fmt.Println("\t\tBids\t\t\t\tAsks")
fmt.Println()
for i := int64(0); i < maxLen; i++ {
for i := range maxLen {
var bidAmount, bidPrice float64
if i <= bidLen {
bidAmount = resp.Bids[i].Amount