WithValue inject key-value pair into request context.
(c *gin.Context, key any, value any)
| 249 | |
| 250 | // WithValue inject key-value pair into request context. |
| 251 | func WithValue(c *gin.Context, key any, value any) { |
| 252 | c.Request = c.Request.WithContext(context.WithValue(c.Request.Context(), key, value)) |
| 253 | } |
| 254 | |
| 255 | // BoolToString transform bool to string |
| 256 | func BoolToString(b bool) string { |
no outgoing calls
no test coverage detected