(ctx context.Context, k string)
| 19 | ) |
| 20 | |
| 21 | func Get[T any](ctx context.Context, k string) (T, bool) { |
| 22 | v, ok := ctx.Value(contextKey(k)).(T) |
| 23 | return v, ok |
| 24 | } |
| 25 | |
| 26 | func Set[T any](ctx context.Context, k string, v T) context.Context { |
| 27 | if gc, ok := ctx.(*gin.Context); ok { |
no test coverage detected