fix setupValuerAndSetter
This commit is contained in:
parent
009bf696f1
commit
3352be8782
@ -462,7 +462,7 @@ func (field *Field) setupValuerAndSetter() {
|
||||
default:
|
||||
field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) {
|
||||
v = reflect.Indirect(v)
|
||||
if v.Kind() == reflect.Interface {
|
||||
for v.Kind() == reflect.Interface {
|
||||
v = reflect.Indirect(v)
|
||||
}
|
||||
for _, fieldIdx := range field.StructField.Index {
|
||||
|
Loading…
x
Reference in New Issue
Block a user