MCPcopy Index your code
hub / github.com/go-openapi/jsonpointer / GetForToken

Function GetForToken

pointer.go:468–472  ·  view source on GitHub ↗

GetForToken gets a value for a json pointer token 1 level deep.

(document any, decodedToken string, opts ...Option)

Source from the content-addressed store, hash-verified

466
467// GetForToken gets a value for a json pointer token 1 level deep.
468func GetForToken(document any, decodedToken string, opts ...Option) (any, reflect.Kind, error) {
469 o := optionsWithDefaults(opts)
470
471 return getSingleImpl(document, decodedToken, o.provider)
472}
473
474// SetForToken sets a value for a json pointer token 1 level deep.
475//

Callers 4

TestGetSingleFunction · 0.85
TestPointableInterfaceFunction · 0.85

Calls 2

optionsWithDefaultsFunction · 0.85
getSingleImplFunction · 0.85

Tested by 4

TestGetSingleFunction · 0.68
TestPointableInterfaceFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…