(c *Context, key any)
| 301 | } |
| 302 | |
| 303 | func getTyped[T any](c *Context, key any) (res T) { |
| 304 | if val, ok := c.Get(key); ok && val != nil { |
| 305 | res, _ = val.(T) |
| 306 | } |
| 307 | return |
| 308 | } |
| 309 | |
| 310 | // GetString returns the value associated with the key as a string. |
| 311 | func (c *Context) GetString(key any) string { |
no test coverage detected
searching dependent graphs…