mirror of
https://github.com/kataras/iris.git
synced 2026-01-12 22:45:58 +00:00
Merge pull request #1475 from rocinantex/v12
fix bug: abount dependency injection Former-commit-id: d163c85d43e6e1db3f7858eefd6b6c654cb541c6
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user