MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / Get

Function Get

internal/libs/contextutil/contextutil.go:21–24  ·  view source on GitHub ↗
(ctx context.Context, k string)

Source from the content-addressed store, hash-verified

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

Callers 1

GetActorFunction · 0.85

Calls 1

contextKeyTypeAlias · 0.85

Tested by

no test coverage detected