switchupcb/copygen

Copygen generates code based on Go types. Generate type-based code to copy values from type to type and fields from struct to struct by default (copier without reflection).

38
/ 100
Emerging

Generated code eliminates runtime reflection overhead through static type analysis and template-based code generation, supporting all Go types including channels and interfaces. Copygen operates as both a CLI tool and programmatic API, using YAML/Go setup files to define type mappings with optional regex-based field matching (automatch, manual map, or tag-based). The generated copy functions are allocation-free with pointers and integrate seamlessly into existing Go projects without adding dependencies.

401 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 12 / 25

How are scores calculated?

Stars

401

Forks

22

Language

Go

License

AGPL-3.0

Last pushed

Mar 06, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/switchupcb/copygen"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.