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).
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.
Stars
401
Forks
22
Language
Go
License
AGPL-3.0
Category
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.
Higher-rated alternatives
googleapis/gapic-generator-python
Generate Python API client libraries from Protocol Buffers.
zeromicro/go-zero
A cloud-native Go microservices framework with cli tool for productivity.
omissis/go-jsonschema
A tool to generate Go data types from JSON Schema definitions.
openconfig/ygot
A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
mailru/easyjson
Fast JSON serializer for golang.