(data []byte)
| 16 | } |
| 17 | |
| 18 | func IsImageFile(data []byte) bool { |
| 19 | return strings.Contains(http.DetectContentType(data), "image/") |
| 20 | } |
| 21 | |
| 22 | func IsPDFFile(data []byte) bool { |
| 23 | return strings.Contains(http.DetectContentType(data), "application/pdf") |
no outgoing calls
no test coverage detected