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
I tried to update from version v1.1.1 to v1.2.7, but I found a bug.
Pointer embedded structs are handled incorrectly, when the embedded struct is nil, after a encode/decode the nil struct gets a default value, instead of staying nil.
Hi,
I tried to update from version v1.1.1 to v1.2.7, but I found a bug.
Pointer embedded structs are handled incorrectly, when the embedded struct is nil, after a encode/decode the nil struct gets a default value, instead of staying nil.
To reproduce, use this code:
go.mod:
main.go
When using v1.1.1 the result will be the
orig and decoded are the same
message.With v1.2.7:
The text was updated successfully, but these errors were encountered: