-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: no clone #20
Comments
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
The text was updated successfully, but these errors were encountered: