Documentation ¶
Overview ¶
Package matchers holds the matching functions used to find mime types.
Index ¶
- Constants
- 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 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 Gif(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 Lua(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 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 Tcl(in []byte) bool
- func ThreeGP(in []byte) bool
- func Tiff(in []byte) bool
- func True(_ []byte) bool
- func Txt(in []byte) bool
- func Wav(in []byte) bool
- func WebM(in []byte) bool
- func Webp(in []byte) bool
- func Xls(in []byte) bool
- func Xlsx(in []byte) bool
- func Xml(in []byte) bool
- func Zip(in []byte) bool
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 Gzip ¶
Gzip matched gzip files based on http://www.zlib.org/rfc-gzip.html#header-trailer
func Mp4 ¶
Mp4 matches an MP4 file. See http://www.ftyps.com for more ftyps and mimetypes
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.