render
render copied to clipboard
Validator option
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?
Why couldn't you add your validation into a custom render.Bind method and then call the default render.Bind method?