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).
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.
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.
omissis/go-jsonschema
A tool to generate Go data types from JSON Schema definitions.
zeromicro/go-zero
A cloud-native Go microservices framework with cli tool for productivity.
openconfig/ygot
A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
mailru/easyjson
Fast JSON serializer for golang.