Fix more golangci-lint warnings and update its config, bump required version of go compiler to 1.24.2

This commit is contained in:
eleksir
2025-04-07 20:14:14 +03:00
parent f905ba79a3
commit 44dbaee87a
9 changed files with 60 additions and 47 deletions

View File

@@ -14,7 +14,7 @@ func main() {
batteries, _ := battery.GetAll()
for index, battery := range batteries {
fmt.Printf("Battery %s: %s\n", index, spew.Sdump(battery))
fmt.Printf("Battery %d: %s\n", index, spew.Sdump(battery))
}
time.Sleep(1 * time.Second)