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
b and anotherB should be equal
a.SomeField : len(0), is-nil:(true)
b.SomeField : len(0), is-nil:(false)
anotherB.SomeField : len(0), is-nil:(true)
Description
If two struts have two fields with the same name but they are slice of different types, the value on the target struct would be assigned to an empty slice rather than a nil slice.
The text was updated successfully, but these errors were encountered:
Reproducible Example
Check https://go.dev/play/p/wIwXSvhuj4j
Result:
Description
If two struts have two fields with the same name but they are slice of different types, the value on the target struct would be assigned to an empty slice rather than a nil slice.
The text was updated successfully, but these errors were encountered: