neo-go/pkg/io
Roman Khimov 1b83dc2476 *: improve for loop syntax
Mostly it's about Go 1.22+ syntax with ranging over integers, but it also
prefers ranging over slices where possible (it makes code a little better to
read).

Notice that we have a number of dangerous loops where slices are mutated
during loop execution, many of these can't be converted since we need proper
length evalutation at every iteration.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-08-30 21:45:18 +03:00
..
binaryBufWriter.go [#2442] English Check 2022-05-04 19:48:27 +03:00
binaryReader.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
binaryrw_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
binaryWriter.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
fileWriter.go [#2442] English Check 2022-05-04 19:48:27 +03:00
fileWriter_test.go *: fix tests failing due to path.Join usage 2021-11-29 11:11:09 +03:00
serializable.go [#2442] English Check 2022-05-04 19:48:27 +03:00
size.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
size_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00