samber

    samber/lo

    πŸ’₯ A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)

    backend
    constraints
    contract
    filterable
    foldable
    functional
    Go
    MIT
    21.4K stars
    970 forks
    21.4K GitHub watchers
    Updated Nov 2, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    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/lo is 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 slices and maps. 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.

    Excerpt from the samber/lo README on GitHub (MIT license). Β© its authors.Read the full README on GitHub

    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

    samber/lo compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15β€”
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16β€”
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29β€”
    samber/lo21.4Kβ€”47245 days ago
    Category median56.0K+2.3K29β€”

    Also by samber

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description