MCPcopy Index your code
hub / github.com/expr-lang/expr / IsNil

Function IsNil

vm/runtime/runtime.go:428–439  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

426}
427
428func IsNil(v any) bool {
429 if v == nil {
430 return true
431 }
432 r := reflect.ValueOf(v)
433 switch r.Kind() {
434 case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.Interface, reflect.Slice:
435 return r.IsNil()
436 default:
437 return false
438 }
439}

Callers 2

RunMethod · 0.92
EqualFunction · 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…