MCPcopy Create free account
hub / github.com/golang/appengine / withNamespace

Function withNamespace

internal/api_common.go:78–80  ·  view source on GitHub ↗
(ctx context.Context, ns string)

Source from the content-addressed store, hash-verified

76var namespaceKey = "holds the namespace string"
77
78func withNamespace(ctx context.Context, ns string) context.Context {
79 return context.WithValue(ctx, &namespaceKey, ns)
80}
81
82func NamespaceFromContext(ctx context.Context) string {
83 // If there's no namespace, return the empty string.

Callers 2

withContextFunction · 0.70
NamespacedContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…