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've a custom type that's a map. When UnmarshalText is called it calls readStruct which calls the readAny method around line 637. This uses props.mkeyprop which in other circumstances would be a pointer to the property of a map key, but since it's a Go map not a protobuf map there's no property and a panic occurs.
The text was updated successfully, but these errors were encountered:
awalterschulze
changed the title
proto: UnmarshalText cannot unmarshal into Go map
UnmarshalText cannot unmarshal into cusomtype of type map
Sep 22, 2016
Yes and no. I was about to yesterday but I had a bunch of other bugs to fix... and I'm not sure when, exactly, I'll be able to get around to it. (I might be able to outside of work.)
I've a custom type that's a map. When UnmarshalText is called it calls readStruct which calls the readAny method around line 637. This uses props.mkeyprop which in other circumstances would be a pointer to the property of a map key, but since it's a Go map not a protobuf map there's no property and a panic occurs.
The text was updated successfully, but these errors were encountered: