golang-samber-lo

Provide type-safe generic data transformations for Go using samber/lo.

2.9k|191|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/samber/cc-skills-golang --skill golang-samber-lo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-samber-lo
Source: https://github.com/samber/cc-skills-golang/tree/main/skills/golang-samber-lo
Command: npx skills add https://github.com/samber/cc-skills-golang --skill golang-samber-lo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Go developers often write boilerplate loops for Map/Filter/Reduce; samber/lo provides declarative, type-safe transformations that return new collections without mutating inputs.

Core Features & Use Cases

  • Map, Filter, Reduce, GroupBy, Chunk, Flatten, Uniq, and more for slices and maps
  • Immutable by default and composable, enabling clear data pipelines
  • Examples: transforming a list of users into a shortened view or grouping tasks by status

Quick Start

Install lo in your Go module and start chaining Map, Filter, and Reduce to process data.

Frequently Asked Questions about golang-samber-lo

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

FAQPage Schema
How do I write declarative Map and Filter functions in Go without boilerplate loops?

Yes, samber/lo provides error variants like MapErr, FilterErr, and ReduceErr to handle errors safely during data transformation pipelines without crashing your application.

Does Go support type-safe generic data pipelines for slices and maps?

samber/lo transformations are immutable by default, meaning operations like Map and Filter return new collections without mutating the original input slices or maps.

How do I handle errors during functional data processing in Go?

Yes, samber/lo provides error variants like MapErr, FilterErr, and ReduceErr to handle errors safely during data transformation pipelines without crashing your application.

Are samber/lo data transformations immutable in Go?

samber/lo transformations are immutable by default, meaning operations like Map and Filter return new collections without mutating the original input slices or maps.