copygen
copygen copied to clipboard
Go generator to copy values from type to type and fields from struct to struct (copier without reflection). Generate any code based on types.
Copygen allows developers to define types, structs, and more in its setup.go file and has no issues copying them to the output; except for comments. The Go AST makes it...
Raise an error in case a field is not matched. Let's say that there are missing fields in target that were not mapped, there should be an option that raises...
I am able to use `map` for mapping a field within model to struct inside domain directly but doing the same via a `convert` does not work. I also tried...
I like the concept of copygen, where in theory the generated could approach ~20x faster than a `json.Marshal -> protojson.Unmarshal` sandwich (and infinitely faster than jinzhu/copier). However, when using on...
Version 0.5 will require the following changes. - [x] implement https://github.com/switchupcb/copygen/issues/33 - [ ] Options, Matcher, Generator: cast option for [direct type conversions](https://go.dev/ref/spec#Conversions) (as opposed to a convert function) The...
#34
## What When running copygen 0.4.0 using Go 1.22, a panic is encountered. This due to the old version of golang.org/x/tools on which this tool currently depends. This issue was...