mirror of
https://github.com/kataras/iris.git
synced 2025-03-13 21:36:28 +01:00
Merge pull request #1475 from rocinantex/v12
fix bug: abount dependency injection Former-commit-id: d163c85d43e6e1db3f7858eefd6b6c654cb541c6
This commit is contained in:
commit
f19da316fd
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user