mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
fix bug: abount dependency injection
Former-commit-id: edf168d762602658ffb5d452f72048ada8b7156e
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user