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

Function isNil

pointer.go:445–457  ·  view source on GitHub ↗
(input any)

Source from the content-addressed store, hash-verified

443}
444
445func isNil(input any) bool {
446 if input == nil {
447 return true
448 }
449
450 kind := reflect.TypeOf(input).Kind()
451 switch kind {
452 case reflect.Pointer, reflect.Map, reflect.Slice, reflect.Chan:
453 return reflect.ValueOf(input).IsNil()
454 default:
455 return false
456 }
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 {

Callers 3

resolveNodeForTokenMethod · 0.85
getSingleImplFunction · 0.85
setSingleImplFunction · 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…