Skip to content

struct: keep reflecting fields after StructReflector - #398

Open
team-humaki wants to merge 1 commit into
go-ini:mainfrom
team-humaki:struct-reflector-continue-fields
Open

team-humaki wants to merge 1 commit into
go-ini:mainfrom
team-humaki:struct-reflector-continue-fields

Conversation

@team-humaki

Copy link
Copy Markdown

ReflectFrom returned as soon as a field implemented StructReflector, so any fields after that one were skipped.

Call the custom reflector, then keep walking the rest of the struct. Regression covers an Address field after Employers.

Fixes #364.

ReflectFrom returned as soon as a field implemented StructReflector, so later fields were dropped. Call the custom reflector then continue. Fixes go-ini#364.
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.

Implementing StructReflector prevents processing all fields

1 participant