(v reflect.Value)
| 457 | } |
| 458 | |
| 459 | func 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. |
| 468 | func GetForToken(document any, decodedToken string, opts ...Option) (any, reflect.Kind, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…