(v any)
| 99 | } |
| 100 | |
| 101 | func isNil(v any) bool { |
| 102 | if v == nil { |
| 103 | return true |
| 104 | } |
| 105 | rv := reflect.ValueOf(v) |
| 106 | kind := rv.Kind() |
| 107 | if kind >= reflect.Chan && kind <= reflect.Slice && rv.IsNil() { |
| 108 | return true |
| 109 | } |
| 110 | return false |
| 111 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…