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:
@ -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)
|
||||
// }
|
||||
// }
|
||||
|
Reference in New Issue
Block a user