GetID returns the Request Context's ID. It returns nil if not given by a prior `SetID` call. See `middleware/requestid` too.
()
| 6641 | // It returns nil if not given by a prior `SetID` call. |
| 6642 | // See `middleware/requestid` too. |
| 6643 | func (ctx *Context) GetID() interface{} { |
| 6644 | return ctx.values.Get(idContextKey) |
| 6645 | } |
| 6646 | |
| 6647 | // String returns the string representation of this request. |
| 6648 | // |