Open forever-eight opened 1 year ago
Output (encryptedOrder) = {Bob bob@bob.com {Bobby 0001-01-01 00:00:00 +0000 UTC}}
+1
Same issue here, is the PR going to be merged ?
@forever-eight @onyxg Maintainer doesn't seem to be active so I forked the repo and made a fix handle the time.Time :
FWIIW, I did a from scratch reimplementation of this here: https://github.com/brunoga/deep
Not only it supports time.Time, it also supports all unexported fields as long as they have a supported type.
}
type Member struct { Name string
bson:"name"
Type stringbson:"type"
Date time.Time } u := User{ Name: "Bob", Email: "bob@bob.com", Member: Member{ Name: "Bobby", Date: time.Now(), }, } encryptedOrder := deepcopy.MustAnything(u).(User)time.Time won't work correctly