Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeTextPlain = "text/plain" TypeOctetStream = "application/octet-stream" TypeMarkdown = "text/markdown" TypeJSON = "application/json" TypeYAML = "application/yaml" TypeCSV = "text/csv" TypeXML = "text/xml" TypeHTML = "text/html" TypePDF = "application/pdf" TypeDOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document" TypePPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation" TypeXLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" )
MIME types recognized by this package.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct {
Type string // detected MIME type, e.g. "application/pdf", "text/html"
Text string // extracted plain text
Extracted bool // true when a type-specific extractor produced the text (false = pass-through)
}
Result holds the outcome of document detection and extraction.
Click to show internal directories.
Click to hide internal directories.