MCPcopy Create free account
hub / github.com/kataras/iris / fromStructValue

Function fromStructValue

hero/dependency.go:172–186  ·  view source on GitHub ↗
(v reflect.Value, dest *Dependency)

Source from the content-addressed store, hash-verified

170}
171
172func fromStructValue(v reflect.Value, dest *Dependency) bool {
173 if !isStructValue(v) {
174 return false
175 }
176
177 // It's just a static struct value.
178 handler := func(*context.Context, *Input) (reflect.Value, error) {
179 return v, nil
180 }
181
182 dest.DestType = v.Type()
183 dest.Static = true
184 dest.Handle = handler
185 return true
186}
187
188func fromStructValueOrDependentStructValue(v reflect.Value, disablePayloadAutoBinding bool, dest *Dependency, prevDependencies []*Dependency) bool {
189 if !isStructValue(v) {

Callers 2

fromFuncFunction · 0.85

Calls 2

isStructValueFunction · 0.85
TypeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…