(v any)
| 41 | } |
| 42 | |
| 43 | func GetReader(v any) io.Reader { |
| 44 | switch v := v.(type) { |
| 45 | case Reader: |
| 46 | return v.r |
| 47 | case ReadCloser: |
| 48 | return v.r |
| 49 | case TempFile: |
| 50 | return v.r |
| 51 | } |
| 52 | return nil |
| 53 | } |
| 54 | |
| 55 | func GetReadCloser(v any) io.ReadCloser { |
| 56 | switch v := v.(type) { |
no outgoing calls
no test coverage detected