mirror of
https://github.com/kataras/iris.git
synced 2025-02-09 02:34:55 +01:00
fix bug: abount dependency injection
Former-commit-id: edf168d762602658ffb5d452f72048ada8b7156e
This commit is contained in:
parent
264c417f4e
commit
6b8b690d4d
|
@ -142,7 +142,9 @@ func lookupFields(elem reflect.Value, skipUnexported bool, onlyZeros bool, paren
|
||||||
index = append(parentIndex, i)
|
index = append(parentIndex, i)
|
||||||
}
|
}
|
||||||
|
|
||||||
field.Index = index
|
tmp := make([]int, len(index))
|
||||||
|
copy(tmp, index)
|
||||||
|
field.Index = tmp
|
||||||
|
|
||||||
fields = append(fields, field)
|
fields = append(fields, field)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user