What problem does it solve?
Go developers often reinvent boilerplate for data transforms, leading to boilerplate-heavy code that is hard to maintain. This Skill provides a comprehensive, type-safe set of functional helpers from samber/lo (and related packages) to accelerate data processing in Go.
Core Features & Use Cases
- Core immutable package (lo) with 500+ functions for slices, maps, strings, math, channels, and concurrency, enabling declarative transforms.
- Optional sub-packages for performance and ergonomics: parallel (lop) for CPU-bound parallelism, mutable (lom) for in-place mutations, lazy iterators (loi) for Go 1.23+ pipelines, and experimental SIMD (lo/exp/simd).
- Use cases include building data pipelines with Map/Filter/GroupBy, performing transformations across collections, and interop with stdlib when possible.
Quick Start
Install via go get github.com/samber/lo and begin using lo.Map, lo.Filter, lo.GroupBy, and other helpers in your codebase; then progressively explore lop, lom, loi as needed.