Skip to content

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