Skip to content

New feature: Struct tags to skip or shadow-copy a field while cloning

Latest
Compare
Choose a tag to compare
@huandu huandu released this 06 Nov 16:50
· 2 commits to master since this release

Changes

  • [NEW] Add new struct tags per discussion in #20
    • clone:"skip" or clone:"-": Skip a field so that the field will be a zero value after cloned.
    • clone:"shadowcopy": Copy a field by value (a.k.a. shadow copy).

Full Changelog: v1.6.0...v1.7.0