Use for range over integers

This appears in Go 1.22 (see https://tip.golang.org/ref/spec#For_range).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-03-28 18:52:42 -07:00
parent f64edc4d6d
commit 17570625c0
9 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ func validateID(id string) error {
}
// Allowed characters: 0-9 A-Z a-z _ + - .
for i := 0; i < len(id); i++ {
for i := range len(id) {
c := id[i]
switch {
case c >= 'a' && c <= 'z':