render icon indicating copy to clipboard operation
render copied to clipboard

Validator option

Open ghost opened this issue 7 years ago • 1 comments

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?

ghost avatar Jan 22 '18 11:01 ghost

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

derekbassett avatar Jul 24 '20 01:07 derekbassett