MCPcopy Create free account
hub / github.com/PaesslerAG/jsonpath / currentContext

Function currentContext

selector.go:26–28  ·  view source on GitHub ↗
(c context.Context, v interface{})

Source from the content-addressed store, hash-verified

24type currentElement struct{}
25
26func currentContext(c context.Context, v interface{}) context.Context {
27 return context.WithValue(c, currentElement{}, v)
28}
29
30//.x, [x]
31func directSelector(key gval.Evaluable) plainSelector {

Callers 4

selectValueFunction · 0.85
filterSelectorFunction · 0.85
rangeSelectorFunction · 0.85
newScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…