mirror of
https://github.com/kataras/iris.git
synced 2026-01-23 03:45:56 +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)
|
index = append(parentIndex, i)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tmp := make([]int, len(index))
|
||||||
|
copy(tmp, index)
|
||||||
|
|
||||||
field := field{
|
field := field{
|
||||||
Type: f.Type,
|
Type: f.Type,
|
||||||
Name: f.Name,
|
Name: f.Name,
|
||||||
Index: index,
|
Index: tmp,
|
||||||
CanSet: isExported,
|
CanSet: isExported,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user