frostfs-sdk-go/object/id
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 [#161] *: Do not use math/rand.Read() 2023-09-08 17:17:02 +03:00
address.go [#101] Add Equals for Address 2023-07-10 09:05:01 +00:00
address_test.go Rename package name 2023-03-07 15:47:21 +03:00
doc.go [#4] Rename NeoFS mentions in comments and method names 2022-12-30 13:40:50 +03:00
id.go Rename package name 2023-03-07 15:47:21 +03:00
id_test.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00