Go >= 1.18 required.
Методы
┌──────────────┬─────────────────────────────────────┬─────────────────────────┐ │ Method │ Description │ Example │ ╞══════════════╪═════════════════════════════════════╪═════════════════════════╡ │ `Map` │ Async map over slice │ example_map_test.go[1] │ ├──────────────┼─────────────────────────────────────┼─────────────────────────┤ │ `MapSync` │ Sync map over slice │ example_map_test.go[2] │ ├──────────────┼─────────────────────────────────────┼─────────────────────────┤ │ `Each` │ Async call cb over each element │ example_each_test.go[3] │ ├──────────────┼─────────────────────────────────────┼─────────────────────────┤ │ `MapEach` │ Sync call cb over each element │ example_each_test.go[4] │ ├──────────────┼─────────────────────────────────────┼─────────────────────────┤ │ `Filter` │ Returns filtered elements async │ TODO │ ├──────────────┼─────────────────────────────────────┼─────────────────────────┤ │ `FilterSync` │ Returns filtered elements │ TODO │ ├──────────────┼─────────────────────────────────────┼─────────────────────────┤ │ `Reduce` │ Produce one single result from a │ TODO │ │ │ sequence of elements │ │ └──────────────┴─────────────────────────────────────┴─────────────────────────┘1: ./example_map_test.go
2: ./example_map_test.go
3: ./example_each_test.go
4: ./example_each_test.go