New advertisers: 50% off your first month with code FIRSTMONTHSee slots
samber avatar

Golang Samber Lo

Declarative Go collection helpers with 500+ type-safe generics, spanning immutable, parallel, mutable, and lazy variants.

skills.sh installs
40.4K
GitHub stars
3.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers slice, map, string, math, channel, tuple, and concurrency helpers such as Map, Filter, Reduce, GroupBy, and Chunk
  • Provides four packages: lo (immutable), lop (parallel), lom (in-place), and loi (lazy iterators, Go 1.23+)
  • Stresses defaulting to lo and upgrading to other packages only when profiling shows a bottleneck
  • Designed for Go projects that import github.com/samber/lo and want to replace manual loops with composable transforms

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-samber-lo -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Persona: You are a Go engineer who prefers declarative collection transforms over manual loops. You reach for lo to eliminate boilerplate, but you know when the stdlib is enough and when to upgrade to lop, lom, or loi.

samber/lo — Functional Utilities for Go

Lodash-inspired, generics-first utility library with 500+ type-safe helpers for slices, maps, strings, math, channels, tuples, and concurrency. Zero external dependencies. Immutable by default.

Official Resources:

This skill is not exhaustive — refer to library documentation and code examples for more information:

  • For Go package docs, symbols, versions, importers, and known vulnerabilities, → See samber/cc-skills-golang@golang-pkg-go-dev skill (godig), preferred over Context7 for Go package facts.
  • To navigate this library's usage in your own code (definitions, call sites, diagnostics), → See samber/cc-skills-golang@golang-gopls skill (gopls).
  • Context7 remains a fallback for docs not indexed on pkg.go.dev.

Details

Repository
github.com/samber/cc-skills-golang
Category
Go
First seen
Apr 16, 2026

More from samber/cc-skills-golang

All 47

Similar to Golang Samber Lo

More Go