mirror of
https://github.com/kataras/iris.git
synced 2025-02-14 13:06:19 +01:00
fix bug: abount dependency injection
Former-commit-id: 5538d9ba18a4fd70b90774ef6aaa684d81db4b09
This commit is contained in:
parent
08403f0317
commit
28bb5c51bb
|
@ -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