DHowett / go-plist

A pure Go Apple Property List transcoder
Other
416 stars 97 forks source link

Marshaler support for interface field types. #72

Closed grahammiln closed 2 years ago

grahammiln commented 2 years ago

Expand interface checks beyond the immediate value type. This allows values that implement the Marshaler interface but are validly assigned to fields with non-implementing types, such as interface{}.

See TestInterfaceFieldMarshal for an example of this behaviour.

DHowett commented 2 years ago

Thanks for submitting this! Sorry about leaving you on read for a week; I will try to get to this review over the weekend! 🙂

DHowett commented 2 years ago

Merged in 663ca47!