frostfs-api-go/netmap
Ekaterina Lebedeva bd588fa2e5 [#113] 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 15:44:59 +03:00
..
grpc [#111] protogen: Emit slice of messages without a pointer 2024-08-28 11:53:08 +03:00
test [#70] netmap: Regenerate protobuf for Replica 2024-03-27 12:56:03 +03:00
convert.go [#113] go.mod: Use range over int 2024-09-04 15:44:59 +03:00
json.go Rename package name 2023-03-07 13:42:36 +03:00
marshal.go [#69] object: Initial EC implementation 2024-03-19 15:23:01 +03:00
message_test.go Rename package name 2023-03-07 13:42:36 +03:00
string.go Rename package name 2023-03-07 13:42:36 +03:00
types.go [#87] netmap: Extend enum Operation 2024-08-07 16:21:50 +03:00