frostfs-node/pkg/util
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
..
attributes [#455] Fix non-informative message when parse node attributes 2023-06-28 15:02:29 +00:00
autocomplete [#83] util/autocomplete: Fix deprecated warning 2023-03-13 07:07:30 +00:00
config [#238] node: Read cfg from dir even if cfg file not set 2023-04-14 10:19:10 +00:00
gendoc [#578] gendoc: Allow to override flags 2023-08-10 11:10:11 +00:00
http [#66] node: Replace interface{} with any 2023-02-21 16:47:07 +03:00
keyer [#972] keyer: Use UncompressedBytes() for marshaling 2024-02-19 13:13:09 +00:00
logger [#991] logger: Fix journald logger 2024-02-19 16:18:13 +03:00
precision Rename package name 2023-03-07 16:38:26 +03:00
rand [#851] util/rand: use single random source 2022-01-12 19:29:27 +03:00
sdnotify [#1262] sdnotify: Send system monotonic time on reload 2024-08-16 12:05:31 +03:00
state [#772] node: Apply gofumpt 2023-10-31 17:03:03 +03:00
sync [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
os.go [#772] node: Apply gofumpt 2023-10-31 17:03:03 +03:00
salt.go [#290] util: Implement salting writer 2021-01-11 18:40:59 +03:00
salt_test.go Rename package name 2023-03-07 16:38:26 +03:00
worker_pool.go [#381] *: Move to sync/atomic 2023-05-23 08:18:01 +03:00
worker_pool_test.go [#901] util: implement Release for PseudWorkerPool 2021-10-25 18:53:36 +03:00