更新时间: 2023-03-04 08:13:53#golang lo库 -stream处理✨ samber/lo is a Lodash-style Go library based on Go 1.18+ Generics. #采用泛型。工具类库 stream处理It may look like Lodash in some aspects. https://github.com/samber/lo a Lodash-style Go library https://github.com/samber/do ⚙️ A dependency injection toolkit based on Go 1.18+ Generics. https://github.com/samber/mo brings monads and popular FP abstractions to Go projects. Filter Map FilterMap FlatMap Reduce ReduceRight ForEach Times Uniq UniqBy GroupBy Chunk PartitionBy Flatten Interleave Shuffle Reverse Fill Repeat RepeatBy KeyBy Associate / SliceToMap Drop DropRight DropWhile DropRightWhile Reject Count CountBy CountValues CountValuesBy Subset Slice Replace ReplaceAll Compact IsSorted IsSortedByKey