You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it seems to me that it is that intended behavior because a nil is also a value that should be copied as if other values. Setting IgnoreEmpty in copier.Option could achieve what you want. However, not only it would ignore nil pointers in source, but also ignore zero values such as empty strings.
Reproducible Example
go playground
Description
expectation
Should not replace non-nil pointer with nil or non existing data
The text was updated successfully, but these errors were encountered: