golang-samber-lo

Transform Go slices and maps with type-safe functional utilities.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/nrmnqdds/gomaluum --skill golang-samber-lo-nrmnqdds
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-samber-lo
Source: https://github.com/nrmnqdds/gomaluum/tree/main/.agents/skills/golang-samber-lo
Command: npx skills add https://github.com/nrmnqdds/gomaluum --skill golang-samber-lo-nrmnqdds

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Go developers rely on boilerplate loops to transform and aggregate data. This Skill provides a comprehensive, type-safe set of functional helpers inspired by lodash, tailored for Go using generics (lo, lop, lom, loi, and experimental SIMD) to simplify data processing.

Core Features & Use Cases

  • Map, Filter, Reduce, GroupBy, Chunk, Flatten, Uniq, and more for slices and maps with zero external dependencies.
  • Support for concurrent transforms (lop), in-place mutations (lom), lazy iterators (loi) on Go 1.23+, and experimental SIMD (lo/exp/simd) when benchmarking warrants.
  • Clear guidance on when to prefer stdlib vs. lo variants, and how to compose transformations in real-world pipelines.

Quick Start

Run basic transformations with lo.Map/Filter on your data, then scale to lom or loi as needed.

Frequently Asked Questions about golang-samber-lo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply functional programming to Go slices and maps without writing verbose loops?

You can apply functional utilities like Map, Filter, and Reduce to transform slices and maps directly, replacing verbose loops with concise, type-safe generic function calls.

What is the best way to group or chunk data in Go using generics?

Grouping or chunking data in Go is best handled by generic utilities like GroupBy and Chunk, which aggregate slice elements into maps or smaller slices without manual loop boilerplate.

Does Go 1.18 support lodash-style functional helpers for data processing?

Go 1.18 supports lodash-style functional helpers through generics, enabling type-safe operations like Uniq and Flatten on slices and maps with zero external dependencies besides the library itself.

Can I perform parallel or lazy transformations on slices in Go?

Parallel and lazy transformations on slices are supported via concurrent variants for parallel processing and lazy iterators on Go 1.23+, enabling scalable data pipelines.

When should I prefer standard library loops over functional utilities in Go?

Prefer standard library loops over functional utilities when performance benchmarks indicate SIMD optimizations are unnecessary, or when simple iterations do not justify importing external generic helpers.