Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 880 Bytes

File metadata and controls

16 lines (9 loc) · 880 Bytes

Table of Contents generated with DocToc

github.com/samber/lo

samber/lo是一个用于实现函数式编程的Go语言库。该库相对于其他使用反射来实现的库来说,更加的快、同时还安全。 它提供了许多用于操作和转换数据的函数,以及一些实用的工具函数。

它提供了切片的许多辅助函数。例如:Filter、Slice、Fill、Map、FilterMap、FlatMap、GroupBy、PartitionBy等,还提供了类似Java中的try-catch机制的异常处理函数,例如:Try、TryWithErrorValue、TryCatch等