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

Method Use

core/router/api_container.go:158–161  ·  view source on GitHub ↗

Use same as `Self.Use` but it accepts dynamic functions as its "handlersFn" input. See `OnError`, `RegisterDependency`, `Done` and `Handle` for more.

(handlersFn ...interface{})

Source from the content-addressed store, hash-verified

156//
157// See `OnError`, `RegisterDependency`, `Done` and `Handle` for more.
158func (api *APIContainer) Use(handlersFn ...interface{}) {
159 handlers := api.convertHandlerFuncs("/", handlersFn...)
160 api.Self.Use(handlers...)
161}
162
163// Done same as `Self.Done` but it accepts dynamic functions as its "handlersFn" input.
164// See `OnError`, `RegisterDependency`, `Use` and `Handle` for more.

Callers

nothing calls this directly

Calls 2

convertHandlerFuncsMethod · 0.95
UseMethod · 0.65

Tested by

no test coverage detected