Open
Description
We are looking to handle polymorphic responses and for that we are using an Interface "IEvent" as a marker for this type. When easyjson generates unmarshaling and marshaling code for this type it uses the interface opposed to the structs that fit the interface type. This results in nil pointer panics when unmarshal is called on the interface.
To work around I simply removed the []IEvent type and replaced with []interface{}.
Metadata
Metadata
Assignees
Labels
No labels