1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-10 02:20:19 +00:00

Add function to set validation default messages

This commit is contained in:
miraclesu
2016-01-05 21:14:35 +08:00
parent f7ef4aa7e5
commit bef6bca397
3 changed files with 34 additions and 2 deletions

View File

@ -38,7 +38,7 @@
// }
// }
// // or use like this
// if v := valid.Max(u.Age, 140); !v.Ok {
// if v := valid.Max(u.Age, 140, "ageMax"); !v.Ok {
// log.Println(v.Error.Key, v.Error.Message)
// }
// }