Merge pull request #1474 from rocinantex/master

fix bug: deep dependency injection

Former-commit-id: 61f4c7f72555957bee25d3f4cf4be1f07f84744c
This commit is contained in:
Gerasimos (Makis) Maropoulos 2020-03-23 02:17:42 +02:00 committed by GitHub
commit 5d5df1aa13

View File

@ -142,7 +142,9 @@ func lookupFields(elem reflect.Value, skipUnexported bool, onlyZeros bool, paren
index = append(parentIndex, i)
}
field.Index = index
tmp := make([]int, len(index))
copy(tmp, index)
field.Index = tmp
fields = append(fields, field)
}