#1487 Readme Template
This commit is contained in:
parent
46bee50e45
commit
bb3b90fcd6
17 changed files with 791 additions and 634 deletions
|
@ -194,6 +194,12 @@ func GetMaxSize(field reflect.StructField) string {
|
|||
return getSize(field, "MaxSize(")
|
||||
}
|
||||
|
||||
// FIXME: struct contains a struct
|
||||
func validateStruct(obj interface{}) binding.Errors {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func validate(errs binding.Errors, data map[string]interface{}, f Form, l macaron.Locale) binding.Errors {
|
||||
if errs.Len() == 0 {
|
||||
return errs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue