You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to return the field that failed the validation when using StopOnError=true
for example
d:=&SomeStruct{
Name: "John"Email: "not an email"
}
v:=validate.Struct(d)
if!v.validate() {
// how do i get the exact field that failed this validation?
}
The text was updated successfully, but these errors were encountered:
Is there a way to return the field that failed the validation when using
StopOnError=true
for example
The text was updated successfully, but these errors were encountered: