Document tries to match a file as document type
(buf []byte)
| 62 | |
| 63 | // Document tries to match a file as document type |
| 64 | func Document(buf []byte) (types.Type, error) { |
| 65 | return doMatchMap(buf, matchers.Document) |
| 66 | } |
| 67 | |
| 68 | // IsDocument checks if the given buffer is an document type |
| 69 | func IsDocument(buf []byte) bool { |
no test coverage detected