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

Function setSessionViewData

_examples/sessions/viewdata/main.go:23–27  ·  view source on GitHub ↗
(ctx iris.Context)

Source from the content-addressed store, hash-verified

21}
22
23func setSessionViewData(ctx iris.Context) {
24 session := sessions.Get(ctx)
25 ctx.ViewData("session", session)
26 ctx.Next()
27}
28
29func index(ctx iris.Context) {
30 session := sessions.Get(ctx)

Callers

nothing calls this directly

Calls 3

GetFunction · 0.92
ViewDataMethod · 0.80
NextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…