Lightlines
By samber

golang-samber-lo

samber34.9k installs

Cleaner Go collection code without needless loops.

What it does

Guides implementation of Go collection transformations with samber/lo, favoring standard-library helpers and profiling before optimization.

When to use it

Use when adopting or using samber/lo, working in a codebase that imports it, or implementing functional-style data transformations in Go.

How to use it

It changes how the agent writes Go collection transformations, preferring standard-library helpers and requiring profiling before mutable or parallel optimizations.

What you provide

  • An existing project

Uses

Good to know

  • cannot be undone: GitHub

Latest review

What you need · 1

The core, parallel, and mutable packages require Go 1.18 or later.


Access · 2

This skill

GitHub

Write

Posts bug reports to GitHub (irreversible)

pkg.go.dev

Read

Looks up Go package facts