This commit is contained in:
crusader 2017-11-02 19:34:59 +09:00
parent bb77dd1b59
commit 6250239174

View File

@ -155,6 +155,7 @@ func validateType(t reflect.Type) (rt reflect.Type, rv reflect.Value, err error)
err = fmt.Errorf("Type is Struct. Pass by reference, i.e. %s", t)
return
}
rt = t
if t.Kind() == reflect.Ptr {
rt = t.Elem()
}