Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct {
RawType Type // basic type from content sniffing
SubType Type // deeper classification (article/docs)
MIME string // HTTP Content-Type header
Metadata map[string]string
Charset string
Encoding string
IsBinary bool
}
Result is the internal detection output.
type Type ¶
type Type string
Type represents Aether’s internal content classification.
const ( TypeUnknown Type = "unknown" TypeHTML Type = "html" TypeJSON Type = "json" TypeXML Type = "xml" TypeRSS Type = "rss" TypePDF Type = "pdf" TypeText Type = "text" TypeImage Type = "image" TypeBinary Type = "binary" TypeArticle Type = "article" TypeHomepage Type = "homepage" TypeDocs Type = "docs" )
Click to show internal directories.
Click to hide internal directories.