8000 struct: support additional fields after StructReflector encountered by maxenglander · Pull Request #365 · go-ini/ini · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

struct: support additional fields after StructReflector encountered #365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maxenglander
Copy link

Describe the pull request

Currently when a field implements StructReflector, reflectFrom will call that and stop processing any other fields.

Change it to use a continue instead of a return, so that additional fields may be processed.

#364

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.

Currently when a field implements `StructReflector`, `reflectFrom` will
call that and stop processing any other fields.

Change it to use a `continue` instead of a `return`, so that additional
fields may be processed.

Signed-off-by: Max Englander <max.englander@gmail.com>
@maxenglander maxenglander marked this pull request as ready for review May 8, 2025 18:19
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.

1 participant
0