mirror of
https://github.com/kataras/iris.git
synced 2025-03-15 08:06:27 +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)
|
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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user