We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.普通递归拷贝
deepcopy.Copy(dst, src).Do()
1.控制拷贝层次,下面结构体只拷贝一层
deepcopy.Copy().MaxDepth(1).Do()
2.只拷贝指定tag的字段
deepcopy.Copy().RegisterTagName("copy").Do()
3.只拷贝string和int类型
deepcopy.Copy().OnlyType(reflect.String, reflect.Int).Do()
4.支持字段选择
deepcopy.Copy().OnlyField("id", "idx").Do() deepcopy.Copy().OnlyField(".struct2", ".struct3").Do()
5.支持效验器,不符合要求的数据不copy
deepcopy.Copy().NeeValid(deepcopy.String()).Do()
第3,4,5条暂时不实现。
The text was updated successfully, but these errors were encountered:
next大版本(近期不会做)
Sorry, something went wrong.
No branches or pull requests
草稿
0.普通递归拷贝
1.控制拷贝层次,下面结构体只拷贝一层
2.只拷贝指定tag的字段
3.只拷贝string和int类型4.支持字段选择
5.支持效验器,不符合要求的数据不copy
TODO
第3,4,5条暂时不实现。
The text was updated successfully, but these errors were encountered: