jinzhu / copier

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

在无法修改tag的情况下,如何复制两个不同名的字段? #139

Closed Infinity233 closed 1 year ago

Infinity233 commented 2 years ago

两个struct都是框架生成的,理论上不应该进行修改,还有办法进行赋值吗?

manchurio commented 2 years ago

这种情况下, 框架应该要支持自定义tag