ViewData get view data context lazy init when first use
()
| 309 | // ViewData get view data context |
| 310 | // lazy init when first use |
| 311 | func (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 |
| 319 | func (ctx *HttpContext) Session() (state *session.SessionState) { |
no test coverage detected