1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

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

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)
}