MCPcopy Create free account
hub / github.com/devfeel/dotweb / ViewData

Method ViewData

context.go:311–316  ·  view source on GitHub ↗

ViewData get view data context lazy init when first use

()

Source from the content-addressed store, hash-verified

309// ViewData get view data context
310// lazy init when first use
311func (ctx *HttpContext) ViewData() core.ConcurrenceMap {
312 if ctx.viewData == nil {
313 ctx.viewData = core.NewConcurrenceMap()
314 }
315 return ctx.viewData
316}
317
318// Session get session state in current context
319func (ctx *HttpContext) Session() (state *session.SessionState) {

Callers 1

ViewCMethod · 0.95

Calls 1

NewConcurrenceMapFunction · 0.92

Tested by

no test coverage detected