Closed matthieuzbo closed 1 year ago
There is no tag system in this package. It's easy to use custom func to ignore a field. Here is a sample: https://go.dev/play/p/mKsbn8YsRWz
As you can see in the sample, in this package, ignoring a field is the same as setting a zero value to the field after cloned.
Thanks.
I find that struct tags can be much more efficient than custom func, so I add a new feature to support tag system. Check out this new feature in the latest release.
Hi,
Just a question about your package: If I want a field not to be copied, do I use
SetCustomFunc
or is there a tag system (like jinzhu copier packagecopier:"-"
)?Thanks