Samber/lo is a Lodash-style Go library based on Go 1.18+ Generics. This project started as an experiment with the new generics implementation. It may look like Lodash in some aspects. I used to code with the fantastic "go-funk" package, but "go-funk" uses reflection and therefore is not typesafe. As expected, benchmarks demonstrate that generics are much faster than implementations based on the "reflect" package. Benchmarks also show similar performance gains compared to pure for loops. In the future, 5 to 10 helpers will overlap with those coming into the Go standard library (under package names slices and maps). I feel this library is legitimate and offers many more valuable abstractions.
Features
- This library is v1 and follows SemVer strictly
- No breaking changes will be made to exported APIs before v2.0.0
- Various supported helpers for channels
- Library based on Go 1.18+
- Most of the time, the compiler will be able to infer the type
- Many Function helpers
Categories
LibrariesLicense
MIT LicenseFollow lo
Other Useful Business Software
Optimize every aspect of hiring with Greenhouse Recruiting
What’s next for many of us is changing. Your company’s ability to hire great talent is as important as ever – so you’ll be ready for whatever’s ahead. Whether you need to scale your team quickly or improve your hiring process, Greenhouse gives you the right technology, know-how and support to take on what’s next.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of lo!