golang-samber-lo

Provide functional collection utilities for Go slices, maps, and channels.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/matdev83/go-llm-interactive-proxy --skill golang-samber-lo-matdev83
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-samber-lo
Source: https://github.com/matdev83/go-llm-interactive-proxy/tree/main/.agents/skills/golang-samber-lo
Command: npx skills add https://github.com/matdev83/go-llm-interactive-proxy --skill golang-samber-lo-matdev83

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines collection processing in Go by providing type-safe, declarative functions for slices, maps, channels, and concurrency.

Core Features & Use Cases

  • Collection Transformations: Map, Filter, Reduce, GroupBy, Chunk, Flatten, and more, used to manipulate data efficiently.
  • Error Handling: Functions support error variants that stop processing on first failure, enhancing robustness.
  • Concurrency & Performance: Includes parallel (lop) and in-place mutation (lom) packages for optimized processing on large datasets.
  • Use Case: Given a large list of user data, filter active users, extract names, and group by roles, all with minimal code.

Quick Start

Use this skill to convert a list of users into a map of email addresses keyed by user ID.

Frequently Asked Questions about golang-samber-lo

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

FAQPage Schema
How do I perform collection transformations in Go without writing verbose loops?

Collection transformations in Go can be handled declaratively using functional utilities like Map, Filter, and Reduce. These tools enable concise, safe data manipulation across slices and maps, replacing manual loop iterations with type-safe function calls.

Does Go support error handling within functional data processing pipelines?

Error handling in Go functional pipelines is supported through error variant functions. These functions automatically halt collection processing upon encountering the first failure, ensuring robust and safe data manipulation without silent errors.

What is the best way to process large datasets concurrently in Go?

Processing large datasets concurrently in Go is achieved using parallel utility packages. These provide optimized concurrent processing for collection transformations, significantly improving performance on large lists compared to sequential execution.

Can I mutate Go slices in-place during data manipulation tasks?

Mutating Go slices in-place during data manipulation is supported by specific mutation packages. These utilities allow in-place modifications for optimized memory usage and performance during collection transformations on large datasets.

How do I group and restructure user data extracted from a slice in Go?

Grouping and restructuring user data in Go uses declarative collection utilities like GroupBy and Chunk. You can efficiently filter active users, extract specific fields, and group by attributes with minimal code.