frostfs-api-go/status
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 [#28] Replace interface{} with any 2023-05-15 17:25:04 +03:00
convert.go [#113] go.mod: Use range over int 2024-09-04 15:44:59 +03:00
details.go [#369] status: Support WRONG_MAGIC_NUMBER code and detail 2022-01-27 16:53:16 +03:00
marshal.go [#51] *: Do not panic in StableSize() 2023-08-02 10:55:10 +03:00
message_test.go Rename package name 2023-03-07 13:42:36 +03:00
status.go [#415] *: Add maintenance status and node state 2022-09-16 18:50:53 +04:00
types.go [#388] *: Remove nil check from setters 2022-03-31 11:32:04 +03:00