qmetrics.net

samber/lo

Type-safe Go generics helpers for slices and maps

Frameworks & PlatformsDesktop/CLI app
samber/lo screenshot

lo is a Lodash-inspired Go library built on Go 1.18+ generics. It adds typed helpers for slices, maps, strings, channels, and functions.

Overview

The lo package is a utility library for Go programs that rely on generics introduced in Go 1.18. It collects many small functions for transforming and querying slices, maps, strings, channels, tuples, times, and errors with compile-time type safety.

Documented helpers span filtering, mapping, reductions, grouping, set operations, searching, sorting checks, string case conversions, channel fan-in and fan-out patterns, debouncing, throttling, and parallel variants of several slice operations. Some overlap exists with newer standard library packages slices and maps, but the project positions itself as offering a broader set of abstractions in one place.

The module follows semantic versioning with no dependencies beyond the Go standard library. A separate ro project is referenced for infinite stream processing, while lo focuses on finite sequences such as slices and maps.

API reference is published on GoDoc and a dedicated documentation site, with playground examples for many helpers.

Key features

  • Generic slice map and filter helpers
  • Map key, value, and entry utilities
  • Set-style intersect and union operations
  • Channel dispatch and fan-in/out tools
  • String casing and chunk helpers
  • Debounce, throttle, and async utilities
  • Parallel map and foreach variants
  • Error try/catch style helpers

Use cases

  • Collection transforms in Go services
  • Readable slice and map pipelines
  • Typed alternatives to hand-rolled loops
  • Channel-based concurrency utilities

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT