Delete deletes the key from the Context's Key map, if it exists. This operation is safe to be used by concurrent go-routines
(key any)
| 480 | // Delete deletes the key from the Context's Key map, if it exists. |
| 481 | // This operation is safe to be used by concurrent go-routines |
| 482 | func (c *Context) Delete(key any) { |
| 483 | c.mu.Lock() |
| 484 | defer c.mu.Unlock() |
| 485 | if c.Keys != nil { |
| 486 | delete(c.Keys, key) |
| 487 | } |
| 488 | } |
| 489 | |
| 490 | /************************************/ |
| 491 | /************ INPUT DATA ************/ |
no outgoing calls