Skip to content
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

Basic struct tags support: skip field, assign field #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mtfelian
Copy link

Introduced basic struct tags support.

  • Use tag deepcopy:"-" to skip copying of a struct field (will be zero-valued);
  • Use tag deepcopy:"=" to assign the field, it is specifically needed when you don't want to deep copy a pointer something like *os.File in the struct field.

@dolmen
Copy link

dolmen commented Oct 19, 2020

The last commit (Converted to module-aware) is irrelevant to this PR.

dolmen referenced this pull request in south-rit/deepcopy Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants