frostfs-node/cmd/frostfs-cli/modules/container
Ekaterina Lebedeva a685fcdc96 [#1317] 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-03 13:00:54 +03:00
..
create.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
delete.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
get.go [#973] node: Resolve revive: unused-parameter linter 2024-03-11 17:11:49 +03:00
get_eacl.go [#973] node: Resolve revive: unused-parameter linter 2024-03-11 17:11:49 +03:00
list.go [#1341] .golangci.yml: Replace exportloopref with copyloopvar 2024-08-28 15:44:41 +00:00
list_objects.go [#973] node: Resolve revive: unused-parameter linter 2024-03-11 17:11:49 +03:00
nodes.go [#1063] cli: Validate container creation for EC policy 2024-04-03 10:33:51 +00:00
policy_playground.go [#1100] Remove unused fields 2024-05-06 10:14:36 +03:00
root.go [#1276] go.mod: Update api-go 2024-07-26 16:44:19 +03:00
util.go [#1276] go.mod: Update api-go 2024-07-26 16:44:19 +03:00