Update utils.go
This commit is contained in:
parent
2c3fc2db28
commit
c460860d34
@ -104,7 +104,12 @@ func GetIdentityFieldValuesMap(reflectValue reflect.Value, fields []*Field) (map
|
|||||||
loaded = map[interface{}]bool{}
|
loaded = map[interface{}]bool{}
|
||||||
notZero, zero bool
|
notZero, zero bool
|
||||||
)
|
)
|
||||||
|
if reflectValue.Kind() == reflect.Interface {
|
||||||
|
reflectValue = reflectValue.Elem()
|
||||||
|
if reflectValue.Kind() == reflect.Ptr {
|
||||||
|
reflectValue = reflectValue.Elem()
|
||||||
|
}
|
||||||
|
}
|
||||||
switch reflectValue.Kind() {
|
switch reflectValue.Kind() {
|
||||||
case reflect.Struct:
|
case reflect.Struct:
|
||||||
results = [][]interface{}{make([]interface{}, len(fields))}
|
results = [][]interface{}{make([]interface{}, len(fields))}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user