mirror of
https://github.com/kataras/iris.git
synced 2025-12-24 05:17:03 +00:00
Add mvc.Application.EnableStructDependents() and app.ConfigureContainer().EnableStructDependents()
relative to: #2158
This commit is contained in:
@@ -154,6 +154,10 @@ func lookupFields(elem reflect.Value, skipUnexported bool, onlyZeros bool, paren
|
||||
// Note: embedded pointers are not supported.
|
||||
// elem = reflect.Indirect(elem)
|
||||
elemTyp := elem.Type()
|
||||
if elemTyp.Kind() == reflect.Pointer {
|
||||
return
|
||||
}
|
||||
|
||||
for i, n := 0, elem.NumField(); i < n; i++ {
|
||||
field := elemTyp.Field(i)
|
||||
fieldValue := elem.Field(i)
|
||||
|
||||
Reference in New Issue
Block a user