Documentation ¶
Overview ¶
Package matchers holds the matching functions used to find mime types.
Index ¶
- Constants
- func AMp4(in []byte) bool
- func Aiff(in []byte) bool
- func Amr(in []byte) bool
- func Ape(in []byte) bool
- func Au(in []byte) bool
- func Avi(in []byte) bool
- func Bmp(in []byte) bool
- func Class(in []byte) bool
- func Collada(in []byte) bool
- func Crx(in []byte) bool
- func Doc(in []byte) bool
- func Docx(in []byte) bool
- func Epub(in []byte) bool
- func False(_ []byte) bool
- func Flac(in []byte) bool
- func Flv(in []byte) bool
- func GeoJson(in []byte) bool
- func Gif(in []byte) bool
- func Gml(in []byte) bool
- func Gpx(in []byte) bool
- func Gzip(in []byte) bool
- func Html(in []byte) bool
- func Ico(in []byte) bool
- func Jar(in []byte) bool
- func Jpg(in []byte) bool
- func Js(in []byte) bool
- func Json(in []byte) bool
- func Kml(in []byte) bool
- func Lua(in []byte) bool
- func M4a(in []byte) bool
- func Midi(in []byte) bool
- func Mkv(in []byte) bool
- func Mp3(in []byte) bool
- func Mp4(in []byte) bool
- func Mpeg(in []byte) bool
- func Mqv(in []byte) bool
- func MusePack(in []byte) bool
- func Ogg(in []byte) bool
- func Pdf(in []byte) bool
- func Perl(in []byte) bool
- func Php(in []byte) bool
- func Png(in []byte) bool
- func Ppt(in []byte) bool
- func Pptx(in []byte) bool
- func Ps(in []byte) bool
- func Psd(in []byte) bool
- func Python(in []byte) bool
- func QuickTime(in []byte) bool
- func Rtf(in []byte) bool
- func SevenZ(in []byte) bool
- func Svg(in []byte) bool
- func Swf(in []byte) bool
- func Tar(in []byte) bool
- func Tcl(in []byte) bool
- func Tcx(in []byte) bool
- func ThreeG2(in []byte) bool
- func ThreeGP(in []byte) bool
- func Tiff(in []byte) bool
- func True(_ []byte) bool
- func Txt(in []byte) bool
- func Wasm(in []byte) bool
- func Wav(in []byte) bool
- func WebM(in []byte) bool
- func Webp(in []byte) bool
- func Woff(in []byte) bool
- func Woff2(in []byte) bool
- func X3d(in []byte) bool
- func Xls(in []byte) bool
- func Xlsx(in []byte) bool
- func Xml(in []byte) bool
- func Zip(in []byte) bool
- Bugs
Constants ¶
View Source
const ReadLimit = 520
ReadLimit is the maximum number of bytes read from the input when detecting a reader.
Variables ¶
This section is empty.
Functions ¶
func GeoJson ¶ added in v0.3.2
GeoJson matches a RFC 7946 GeoJSON file.
BUG(gabriel-vasile): The "type" key should be searched for in the root object.
func Gzip ¶
Gzip matched gzip files based on http://www.zlib.org/rfc-gzip.html#header-trailer.
Types ¶
This section is empty.
Notes ¶
Bugs ¶
The "type" key should be searched for in the root object.
Click to show internal directories.
Click to hide internal directories.