MCPcopy Index your code
hub / github.com/kataras/iris / Get

Method Get

mvc/controller_test.go:204–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202}
203
204func (c *testControllerEndRequestAwareness) Get() {
205 username := c.Ctx.Params().Get("username")
206 c.Ctx.Values().Set(c.Ctx.Application().ConfigurationReadOnly().GetViewDataContextKey(),
207 map[string]interface{}{
208 "TestModel": Model{Username: username},
209 "myModel": Model{Username: username + "2"},
210 })
211}
212
213func writeModels(ctx *context.Context, names ...string) {
214 if expected, got := len(names), len(ctx.GetViewData()); expected != got {

Callers

nothing calls this directly

Calls 7

ParamsMethod · 0.80
ApplicationMethod · 0.80
GetMethod · 0.65
SetMethod · 0.65
GetViewDataContextKeyMethod · 0.65
ConfigurationReadOnlyMethod · 0.65
ValuesMethod · 0.45

Tested by

no test coverage detected