Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
func
setSessionViewData(ctx iris.Context) {
24
session := sessions.Get(ctx)
25
ctx.ViewData(
"session"
, session)
26
ctx.Next()
27
}
28
29
func
index(ctx iris.Context) {
30
session := sessions.Get(ctx)
Callers
nothing calls this directly
Calls
3
Get
Function · 0.92
ViewData
Method · 0.80
Next
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…