Skip to content

Conversation

grahammiln
Copy link
Contributor

@grahammiln grahammiln commented Oct 21, 2022

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.

Expand interface check beyond the immediate type of the value. This
allows for custom marshaling of structures with interface and indirect
field types.
@DHowett
Copy link
Owner

DHowett commented Oct 28, 2022

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

Copy link
Owner

@DHowett DHowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this is super straightforward. Thanks again for the fix!

@DHowett DHowett closed this in 663ca47 Nov 2, 2022
@DHowett
Copy link
Owner

DHowett commented Nov 2, 2022

Merged in 663ca47!

chihqiang pushed a commit to pkg6/go-plist that referenced this pull request May 20, 2025
Expand interface check beyond the immediate type of the value. This
allows for custom marshaling of structures with interface and indirect
field types.

Closes DHowett#72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants