frostfs-sdk-go/pool
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
..
tree [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
cache.go [#234] pool: Update token expiration check in cache 2024-07-05 12:36:17 +03:00
cache_test.go [#234] pool: Update token expiration check in cache 2024-07-05 12:36:17 +03:00
doc.go [#203] Add pool docs 2024-08-30 08:24:31 +03:00
mock_test.go [#263] go.mod: Update api-go 2024-09-03 12:36:28 +03:00
object_put_pool_transformer.go [#237] pool: Return creation epoch from object put 2024-07-22 06:15:23 +00:00
pool.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
pool_test.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
sampler.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
sampler_test.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
statistic.go [#263] go.mod: Update api-go 2024-09-03 12:36:28 +03:00