Lightlines
By cxuu

go-generics

cxuu975 installs

Reusable Go code without needless generics.

What it does

Guides Go generic code design to reuse shared logic without unnecessary type abstraction.

When to use it

Use when deciding whether to use Go generics, writing generic functions or types, choosing constraints or type declarations, or writing utilities that could work with multiple types.

How to use it

It changes how the agent writes Go code by favoring concrete types until multiple types justify generics.

What you provide

  • An existing project

Latest review

What you need · 1

Generic code requires Go 1.18 or later.


Access · 0

No additional actions listed.