GoogleCloudPlatform / prometheus-engine

Google Cloud Managed Service for Prometheus libraries and manifests.
https://g.co/cloud/managedprometheus
Apache License 2.0
191 stars 89 forks source link

chore: update linter to go1.22 #994

Closed bernot-dev closed 3 months ago

bernot-dev commented 3 months ago

Key language changes: https://tip.golang.org/doc/go1.22#language

Ranging over integers is expressed more concisely, and variables declared by a for loop are created anew each loop.

Linters now enforce that the new form of each of these changes.