1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 19:10:54 +00:00

Merge branch 'master' into develop

This commit is contained in:
astaxie 2014-08-01 17:04:22 +08:00
commit 008ae39ff6

View File

@ -33,7 +33,7 @@ Direct Use:
valid.Required(u.Name, "name")
valid.MaxSize(u.Name, 15, "nameMax")
valid.Range(u.Age, 0, 140, "age")
if valid.HasErrors {
if valid.HasErrors() {
// validation does not pass
// print invalid message
for _, err := range valid.Errors {