jinzhu / copier

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

Deepcopy handle shallow-copyable un-exported fields #105

Closed BatmanAoD closed 3 years ago

BatmanAoD commented 3 years ago

Alternative to #103 without special handling for time.Time

BatmanAoD commented 3 years ago

Should fix #97 and #98

furkanrollic commented 3 years ago

Any updates on this pr? I have the same problem and the proposed solution seems reasonable to me although I am not very familiar with the codebase.

tomdevelops commented 3 years ago

hey have a look at the PR #113 it should fix the same problem and pass all tests. I've merged the PR #113 into my fork, so you could use that, until it is merged in the main project.

go.mod

module awesomeproject

go 1.16

require (
....
)

replace github.com/jinzhu/copier => github.com/tomdevelops/copier v0.3.3
BatmanAoD commented 3 years ago

Hm, I'm not sure how I didn't notice the test failures on my branch. Closing this in favor of #113.