FromContext creates a new context from the given gin context.
(c *gin.Context)
| 60 | |
| 61 | // FromContext creates a new context from the given gin context. |
| 62 | func FromContext(c *gin.Context) Context { |
| 63 | return Context{Context: c} |
| 64 | } |
| 65 | |
| 66 | // Copy creates a copy of the context that can be safely used outside the request's scope. |
| 67 | func (c Context) Copy() Context { |
no outgoing calls