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

Function testBinderFunc

hero/handler_test.go:18–25  ·  view source on GitHub ↗
(ctx iris.Context)

Source from the content-addressed store, hash-verified

16}
17
18func testBinderFunc(ctx iris.Context) testUserStruct {
19 id, _ := ctx.Params().GetInt64("id")
20 username := ctx.Params().Get("username")
21 return testUserStruct{
22 ID: id,
23 Username: username,
24 }
25}
26
27// service
28type (

Callers

nothing calls this directly

Calls 3

ParamsMethod · 0.80
GetMethod · 0.65
GetInt64Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…