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

This tool helps Go developers eliminate the tedious, error-prone task of writing code to copy data between different Go data structures. You provide your Go type definitions and a simple configuration, and Copygen automatically generates highly efficient, reflection-free Go code for copying values between types and fields between structs. It's ideal for Go developers who frequently need to map data between different layers of an application, such as database models to API models.

401 stars. No commits in the last 6 months.

Use this if you are a Go developer who regularly writes boilerplate code to transfer data between different struct types or fields, and you want to automate this process to save time and reduce errors.

Not ideal if you are not working with Go, or if your data copying needs are very minimal and you prefer to write every line of transformation code manually.

Go-development code-generation data-mapping boilerplate-reduction software-engineering
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.