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

Method Struct

hero/container.go:374–376  ·  view source on GitHub ↗

Struct accepts a pointer to a struct value and returns a structure which contains bindings for the struct's fields and a method to extract a Handler from this struct's method.

(ptrValue interface{}, partyParamsCount int)

Source from the content-addressed store, hash-verified

372// contains bindings for the struct's fields and a method to
373// extract a Handler from this struct's method.
374func (c *Container) Struct(ptrValue interface{}, partyParamsCount int) *Struct {
375 return makeStruct(ptrValue, c, partyParamsCount)
376}
377
378// ErrMissingDependency may returned only from the `Container.Inject` method
379// when not a matching dependency found for "toPtr".

Callers

nothing calls this directly

Calls 1

makeStructFunction · 0.85

Tested by

no test coverage detected