jinzhu / copier

Copier for golang, copy value from struct to struct and more
MIT License
5.57k stars 489 forks source link

可以排除某些字段不复制吗? #213

Open jianhao84 opened 5 months ago

jianhao84 commented 5 months ago

Your Question

Expected answer

01782015 commented 2 weeks ago

我当前不能在标签上实现这个 怎么在其他地方配置排除字段 当前我的临时解决办法是先整体复制 然后 再一个一个把排除的复制回来 不知道有没有直接配置的选项 类似: exclude参数 排除 include 参数 只复制特定字段的办法

uded commented 2 weeks ago

Is there any chance you can change the name? Then, the field will be ignored. Otherwise, could you explain the use case a little more so it can be analyzed/understood?