Any chance you could extend MessageValidator with a function where I can set a custom error instead of just a string? So in addition to .Msg(s string) something like .Err(err error)? My errors contain additional information which would allow me further processing after validation.
Any chance you could extend
MessageValidatorwith a function where I can set a custom error instead of just a string? So in addition to.Msg(s string)something like.Err(err error)? My errors contain additional information which would allow me further processing after validation.