(input any)
| 443 | } |
| 444 | |
| 445 | func 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 | |
| 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 { |
no outgoing calls
no test coverage detected
searching dependent graphs…