(
)
SignUpParam {
Age Name Email Password RePassword }
trans .(locale ) (err ) {
validateok := .Validator.().(*.)ok {
zhT := .()
enT := .()
uni := .(enTzhTenT)
found := uni.(locale)
!found {
.(locale)
}
locale {
:
err = .(validate)
:
err = .(validate)
}
}
}
() {
err := ()err != {
.(err)
}
r := .()
r.((c *.) {
u err := c.(&u)err != {
errs .ok := .(err&errs)
!ok {
c.(..{: err.()})
}
c.(..{: errs.(trans)})
}
c.(.)
})
r.()
}
老师,我的代码是这样的,为啥红框的能够转译成中文,下面那个就不行呢
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星