#1487 Readme Template

This commit is contained in:
Unknwon 2015-08-28 18:33:09 +08:00
parent 46bee50e45
commit bb3b90fcd6
17 changed files with 791 additions and 634 deletions

View file

@ -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