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

Add require field tag #36

Open
NilsJPWerner opened this issue Dec 18, 2021 · 0 comments
Open

Add require field tag #36

NilsJPWerner opened this issue Dec 18, 2021 · 0 comments

Comments

@NilsJPWerner
Copy link

It would be fantastic if this library had the option to set a struct field as required. Then when defaults.Set is called on a struct with zero value fields that are marked as required the function returns an error.

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

1 participant