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

Method Err

context.go:1457–1462  ·  view source on GitHub ↗

Err returns nil when c.Request has no Context.

()

Source from the content-addressed store, hash-verified

1455
1456// Err returns nil when c.Request has no Context.
1457func (c *Context) Err() error {
1458 if !c.hasRequestContext() {
1459 return nil
1460 }
1461 return c.Request.Context().Err()
1462}
1463
1464// Value returns the value associated with this context for key, or nil
1465// if no value is associated with key. Successive calls to Value with

Calls 1

hasRequestContextMethod · 0.95