MCPcopy
hub / github.com/gin-gonic/gin / allocateContext

Method allocateContext

gin.go:252–256  ·  gin.go::Engine.allocateContext
(maxParams uint16)

Source from the content-addressed store, hash-verified

250}
251
252func (engine *Engine) allocateContext(maxParams uint16) *Context {
253 v := make(Params, 0, maxParams)
254 skippedNodes := make([]skippedNode, 0, engine.maxSections)
255 return &Context{engine: engine, params: &v, skippedNodes: &skippedNodes}
256}
257
258// Delims sets template left and right delims and returns an Engine instance.
259func (engine *Engine) Delims(left, right string) *Engine {

Callers 4

NewFunction · 0.95
TestContextResetFunction · 0.80
CreateTestContextFunction · 0.80
CreateTestContextOnlyFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestContextResetFunction · 0.64