frostfs-api-go/refs
Ekaterina Lebedeva bd588fa2e5
All checks were successful
DCO action / DCO (pull_request) Successful in 41s
Tests and linters / Lint (pull_request) Successful in 1m11s
Tests and linters / Tests (1.22) (pull_request) Successful in 1m11s
Tests and linters / Tests (1.23) (pull_request) Successful in 1m10s
Tests and linters / Tests with -race (pull_request) Successful in 1m23s
[#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 [#108] protogen: Distinguish between empty and nil messages 2024-08-27 11:02:18 +03:00
test [#106] test: Generate correct data for tests 2024-08-30 13:37:29 +03:00
bench_test.go [#113] go.mod: Use range over int 2024-09-04 15:44:59 +03:00
convert.go [#111] protogen: Emit slice of messages without a pointer 2024-08-28 11:53:08 +03:00
json.go Rename package name 2023-03-07 13:42:36 +03:00
marshal.go [#50] util: Use protowire for util/proto helpers 2023-08-10 16:40:53 +00:00
message_test.go [#19] subnet: Drop related types and fields 2023-04-18 13:29:50 +03:00
string.go Rename package name 2023-03-07 13:42:36 +03:00
types.go [#19] subnet: Drop related types and fields 2023-04-18 13:29:50 +03:00