Skip to content

struct: keep reflecting fields after StructReflector - #398

Merged
unknwon merged 1 commit into
go-ini:v1from
team-humaki:struct-reflector-continue-fields
Nov 11, 2026
Merged

unknwon merged 1 commit into
go-ini:v1from
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.
@unknwon
unknwon merged commit 28854b5 into go-ini:v1 Nov 11, 2026
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

2 participants