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

Embedded structs not supported #14

Open
jagipson opened this issue Feb 26, 2015 · 0 comments · May be fixed by #29
Open

Embedded structs not supported #14

jagipson opened this issue Feb 26, 2015 · 0 comments · May be fixed by #29

Comments

@jagipson
Copy link

I'm not sure if your v3 will be using structs to define the layout of options as this version does, but I noticed that embedded structs were not implemented.

During the reflection/parsing of the struct, if you check the reflect.Value.Anonymous (bool) field and get true you could recurse into that single embedded struct. This allows user to 'reuse' subsets of field structs defined in separate structs but embedding them in the main field struct.

@gdm85 gdm85 linked a pull request Feb 14, 2020 that will close this issue
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 a pull request may close this issue.

1 participant