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
When using default or the upcoming copy to an existing instance #147, a user may want to skip setting fields on a target struct when the source field has a zero value.
This is fixed for updating an existing instance (#147) via update:ignoreZeroValueField with v1.6.0. default is unsupported, as I don't think this has many use-cases.
When using
default
or the upcoming copy to an existing instance #147, a user may want to skip setting fields on a target struct when the source field has a zero value.In Go the zero value can describe an absent value, goverter should support skipping the absent value so that the
output
would be actuallySimilarly, when converting a non nilable primitive type to a nilable type, the target should be set/stay
nil
when the source value is absent, e.g.I don't think this should be the default, so this feature should be behind a feature config flag.
Similar #97
Request #147 (comment)
Request #152
Please 👍 this issue if you want this functionality. If you have a specific use-case in mind, feel free to comment it.
The text was updated successfully, but these errors were encountered: