frostfs-sdk-go/netmap
Ekaterina Lebedeva 46ee543899
All checks were successful
DCO / DCO (pull_request) Successful in 47s
Tests and linters / Tests (1.22) (pull_request) Successful in 1m7s
Tests and linters / Tests (1.23) (pull_request) Successful in 1m7s
Tests and linters / Lint (pull_request) Successful in 1m42s
[#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
..
parser [#231] netmap: Add LIKE operation for filter 2024-08-12 09:49:12 +03:00
test [#161] *: Do not use math/rand.Read() 2023-09-08 17:17:02 +03:00
yml_tests [#166] netmap: Move tests from JSON to YML 2023-11-17 14:42:39 +03:00
aggregator.go [#1316] lint: Fix warnings 2024-08-21 17:59:10 +03:00
aggregator_test.go [#88] netmap: fix min aggregator bug, add tests 2023-10-03 07:05:03 +00:00
bench_test.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
context.go [#1316] lint: Fix warnings 2024-08-21 17:59:10 +03:00
doc.go Rename package name 2023-03-07 15:47:21 +03:00
filter.go [#231] netmap: Add LIKE operation for filter 2024-08-12 09:49:12 +03:00
filter_test.go Rename package name 2023-03-07 15:47:21 +03:00
helper_test.go Rename package name 2023-03-07 15:47:21 +03:00
netmap.go [#236] netmap: Reuse slice for weights in ContainerNodes() 2024-07-12 14:25:07 +03:00
netmap_test.go Rename package name 2023-03-07 15:47:21 +03:00
network_info.go [#232] netmap: Allow empty values for unknown parameters in network config 2024-07-09 12:19:25 +03:00
network_info_decode_test.go [#240] netmap: Support HomomorphicHashingDisabled network config 2022-07-05 15:37:49 +03:00
network_info_test.go [#205] netmap: Add well-known EC parameters to network config 2024-03-22 10:14:12 +00:00
node_info.go [#236] netmap: Replace sort.Slice() with slices.Sort() 2024-07-12 14:25:07 +03:00
node_info_test.go [#344] netmap: Support ExternalAddr well-known attribute 2022-09-26 13:28:39 +03:00
policy.go [#231] netmap: Add LIKE operation for filter 2024-08-12 09:49:12 +03:00
policy_decode_test.go [#216] netmap: Add policy decode fuzz test 2024-05-07 11:10:37 +00:00
policy_fuzz.go [#216] netmap: Add policy decode fuzz test 2024-05-07 11:10:37 +00:00
policy_fuzz_test.go [#216] netmap: Add policy decode fuzz test 2024-05-07 11:10:37 +00:00
policy_test.go [#231] netmap: Add LIKE operation for filter 2024-08-12 09:49:12 +03:00
selector.go [#236] netmap: Reuse slice for weights in ContainerNodes() 2024-07-12 14:25:07 +03:00
selector_test.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
Tests.md [#23] pre-commit: Add initial configuration 2023-03-09 22:52:51 +03:00
yml_test.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
yml_unmarshal.go [#231] netmap: Add LIKE operation for filter 2024-08-12 09:49:12 +03:00