Skip to content
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

[FEATURE]: Allow config with inheritance #174

Closed

Conversation

celian-garcia
Copy link
Member

@celian-garcia celian-garcia commented Jan 8, 2024

This is a draft PR with only the test for now, to highlight an issue / "feature lack" of inheriting another go struct into the config.

The problem is that only the parent struct's Verify function is called.

Edit: Actually this is working when Foo is exposed: foo -> Foo on the struct name. I think then it creates a virtual Foo field and considered by the reflection as a field ? I'm not sure but when we expose it it works.

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