Merge pull request #1475 from rocinantex/v12

fix bug: abount dependency injection

Former-commit-id: d163c85d43e6e1db3f7858eefd6b6c654cb541c6
This commit is contained in:
Gerasimos (Makis) Maropoulos 2020-03-24 01:03:40 +02:00 committed by GitHub
commit f19da316fd

View File

@ -229,10 +229,13 @@ func lookupFields(elemTyp reflect.Type, skipUnexported bool, parentIndex []int)
index = append(parentIndex, i)
}
tmp := make([]int, len(index))
copy(tmp, index)
field := field{
Type: f.Type,
Name: f.Name,
Index: index,
Index: tmp,
CanSet: isExported,
}