frostfs-sdk-go/eacl
Ekaterina Lebedeva 46ee543899 [#265] go.mod: Use range over int
Since Go 1.22 a `for` statement with a `range` clause is able
to iterate through integer values from zero to an upper limit.

gopatch script:
@@
var i, e expression
@@
-for i := 0; i <= e - 1; i++ {
+for i := range e {
    ...
}

@@
var i, e expression
@@
-for i := 0; i <= e; i++ {
+for i := range e + 1 {
    ...
}

@@
var i, e expression
@@
-for i := 0; i < e; i++ {
+for i := range e {
    ...
}

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2024-09-04 12:37:46 +03:00
..
test [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
enums.go Rename package name 2023-03-07 15:47:21 +03:00
enums_test.go Rename package name 2023-03-07 15:47:21 +03:00
filter.go Rename package name 2023-03-07 15:47:21 +03:00
filter_test.go [#47] eacl: Fix duplicate imports 2023-04-07 08:59:19 +03:00
record.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
record_test.go [#202] eacl: Drop storage group test 2024-02-15 15:23:47 +03:00
table.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
table_test.go Rename package name 2023-03-07 15:47:21 +03:00
target.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
target_test.go [#47] eacl: Fix duplicate imports 2023-04-07 08:59:19 +03:00
types.go Rename package name 2023-03-07 15:47:21 +03:00
validator.go [#190] sdk-go: Gofumpt fixes 2023-11-22 19:21:20 +03:00
validator_test.go [#161] *: Do not use math/rand.Read() 2023-09-08 17:17:02 +03:00