MCPcopy Index your code
hub / github.com/labstack/echo / AcquireContext

Method AcquireContext

echo.go:755–757  ·  view source on GitHub ↗

AcquireContext returns an empty `Context` instance from the pool. You must return the context by calling `ReleaseContext()`.

()

Source from the content-addressed store, hash-verified

753// AcquireContext returns an empty `Context` instance from the pool.
754// You must return the context by calling `ReleaseContext()`.
755func (e *Echo) AcquireContext() *Context {
756 return e.contextPool.Get().(*Context)
757}
758
759// ReleaseContext returns the `Context` instance back to the pool.
760// You must call it after `AcquireContext()`.

Callers 2

TestEchoContextFunction · 0.80

Calls 1

GetMethod · 0.45

Tested by 2

TestEchoContextFunction · 0.64