1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 06:40:40 +00:00

golint all the files

This commit is contained in:
astaxie
2016-01-18 00:18:21 +08:00
parent da36d1d0e7
commit f925bb9058
16 changed files with 45 additions and 43 deletions

View File

@ -56,9 +56,10 @@ func init() {
}
}
// CustomFunc is for custom validate function
type CustomFunc func(v *Validation, obj interface{}, key string)
// Add a custom function to validation
// AddCustomFunc Add a custom function to validation
// The name can not be:
// Clear
// HasErrors

View File

@ -46,7 +46,7 @@ var MessageTmpls = map[string]string{
"ZipCode": "Must be valid zipcode",
}
// set default messages
// SetDefaultMessage set default messages
// if not set, the default messages are
// "Required": "Can not be empty",
// "Min": "Minimum is %d",