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

Function typeFromValue

pointer.go:459–465  ·  view source on GitHub ↗
(v reflect.Value)

Source from the content-addressed store, hash-verified

457}
458
459func typeFromValue(v reflect.Value) any {
460 if v.CanAddr() && v.Kind() != reflect.Interface && v.Kind() != reflect.Map && v.Kind() != reflect.Slice && v.Kind() != reflect.Pointer {
461 return v.Addr().Interface()
462 }
463
464 return v.Interface()
465}
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) {

Callers 1

resolveNodeForTokenMethod · 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…