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

Method GetCtx

mvc/controller_test.go:277–279  ·  view source on GitHub ↗

test if context can be binded to the controller's function without need to declare it to a struct if not needed.

(ctx iris.Context)

Source from the content-addressed store, hash-verified

275// test if context can be binded to the controller's function
276// without need to declare it to a struct if not needed.
277func (t *testControllerBindStruct) GetCtx(ctx iris.Context) {
278 ctx.StatusCode(iris.StatusContinue)
279}
280
281type testControllerBindDeep struct {
282 testControllerBindStruct

Callers

nothing calls this directly

Calls 1

StatusCodeMethod · 0.65

Tested by

no test coverage detected