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

gen.StructStrict, which errors if gens contains keys the target struct does not contain? #76

Open
coventry opened this issue Nov 6, 2020 · 3 comments

Comments

@coventry
Copy link
Contributor

coventry commented Nov 6, 2020

I'm thinking of writing a gen.StructStrict, which panics if gens contains keys which are not fields on rt, so for instance the "NotThere" key in struct_test.go::TestStruct would cause a failure. Would you be likely to accept this as a PR?

@untoldwind
Copy link
Collaborator

Sure, any PR is welcomed ;)

@jonaslagoni
Copy link

Was just about to request this 👍 😄

@coventry
Copy link
Contributor Author

@jonaslagoni, please try #77.

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

No branches or pull requests

3 participants