samber/lo
π₯ A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
No releases in the last 90 days; the most recent was 245 days ago, with 165 contributors on GitHub.
Peaked at #67 in the weekly ranking the week of Oct 19, its best in the past year.
Use Cases & Benefits
- Provides a Lodash-style utility library for Go using Go 1.18+ generics to simplify working with slices, maps, strings, channels, and functions.
- Offers a comprehensive, type-safe, and generics-based API that enhances code readability and reduces boilerplate compared to standard Go libraries.
- Use for functional-style data transformations and filtering on slices and maps in Go applications requiring concise and expressive code.
- Use for concurrent and parallel processing of collections with goroutine-based helpers to improve performance in multi-core environments.
- Use for building reusable, type-safe utility functions in Go projects that need advanced collection manipulation, string formatting, and error handling.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
- Code of conduct: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
β¨
samber/lois a Lodash-style Go library based on Go 1.18+ Generics.A utility library based on Go 1.18+ generics that makes it easier to work with slices, maps, strings, channels, and functions. It provides dozens of handy methods to simplify common coding tasks and improve code readability. It may look like Lodash in some aspects.
5 to 10 helpers may overlap with those from the Go standard library, in packages
slicesandmaps. I feel this library is legitimate and offers many more valuable abstractions.I wanted a short name, similar to "Lodash", and no Go package uses this name.
This library is v1 and follows SemVer strictly.
No breaking changes will be made to exported APIs before v2.0.0.
This library has no dependencies outside the Go standard library.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
Forks
970+21
Open issues
265+39
Compared with peers in Backend
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| anthropics/skills | 187.8K | +2.9K | 15 | β |
| DuarteSantos8/openGym | 19.7K | +2.4K | 60 | 2 days ago |
| shiyu-coder/Kronos | 47.0K | +2.3K | 16 | β |
| NationalSecurityAgency/ghidra | 98.2K | +2.3K | 64 | 14 days ago |
| microsoft/VibeVoice | 56.0K | +1.1K | 29 | β |
| samber/lo | 21.4K | β | 47 | 245 days ago |
| Category median | 56.0K | +2.3K | 29 | β |
Also by samber
Other repositories from this maintainer that GStars tracks
Discover Repositories
Search across tracked repositories by name or description