Question:在使用struct方法验证一个struct A的时候,其中一个成员a是另一个struct B组成的slice,那如何设置a的tag来调用B的validate验证 · Issue #232 · gookit/validate · GitHub
More Web Proxy on the site http://driver.im/
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
如题
type A struct {
a []B
validate:"required"
}
type B struct {
b xxx
validate:"required,validateb"
}
应该如何修改 A.a 的tag来调用b的验证函数validateb呢
The text was updated successfully, but these errors were encountered: