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

Validator option #10

Open
ghost opened this issue Jan 22, 2018 · 1 comment
Open

Validator option #10

ghost opened this issue Jan 22, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 22, 2018

Why not add Validator option, but not inside the code, only a default struct that after each one can config with the validator that want.

Like:
render.Validator := &DefaultValidator{...} ....

and after use something like:
render.Validate(...)

or something inside de Bind.

What do you think?

@derekbassett
Copy link

derekbassett commented Jul 24, 2020

Why couldn't you add your validation into a custom render.Bind method and then call the default render.Bind method?

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