Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matcher ¶
Matcher matches provided MIME-types against MIME-types associated with formats. This is an extra signal for identification akin to a file extension. It is used, for example, for web archive files (WARC) where you have declared MIME-types which you might want to verify.
type Result ¶
type Result struct { Trimmed bool // contains filtered or unexported fields }
Result reports a MIME-type match. If Trimmed is true, then the supplied MIME-type was trimmed of text following a ";" before matching
type SignatureSet ¶
type SignatureSet []string
SignatureSet for a MIMEMatcher is a slice of MIME-types
Click to show internal directories.
Click to hide internal directories.