Merge 9a8621cea1ac7ae0b66f912890cdae1b66f9587f into 94415333ed58f2677d0e3c2d902e111ddc56ccb8

This commit is contained in:
Martin Karlsch 2014-10-08 17:29:51 +00:00
commit 0e34a6a9d6

View File

@ -174,6 +174,11 @@ func Validate(obj interface{}) error {
continue
}
// skip unexported fields
if field.PkgPath != "" {
continue
}
fieldValue := val.Field(i).Interface()
zero := reflect.Zero(field.Type).Interface()