ing
This commit is contained in:
parent
bb77dd1b59
commit
6250239174
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user