Documentation ¶
Overview ¶
Package matchers holds the matching functions used to find mime types.
Index ¶
- Constants
- func AMp4(in []byte) bool
- func Aac(in []byte) bool
- func Aiff(in []byte) bool
- func Amf(in []byte) bool
- func Amr(in []byte) bool
- func Ape(in []byte) bool
- func Ar(in []byte) bool
- func Asf(in []byte) bool
- func Atom(in []byte) bool
- func Au(in []byte) bool
- func Avi(in []byte) bool
- func Bmp(in []byte) bool
- func Bpg(in []byte) bool
- func Bz2(in []byte) bool
- func Class(in []byte) bool
- func Collada(in []byte) bool
- func Crx(in []byte) bool
- func Csv(in []byte) bool
- func Dbf(in []byte) bool
- func Dcm(in []byte) bool
- func Deb(in []byte) bool
- func DjVu(in []byte) bool
- func Doc(in []byte) bool
- func Docx(in []byte) bool
- func Dwg(in []byte) bool
- func Elf(in []byte) bool
- func ElfDump(in []byte) bool
- func ElfExe(in []byte) bool
- func ElfLib(in []byte) bool
- func ElfObj(in []byte) bool
- func Eot(in []byte) bool
- func Epub(in []byte) bool
- func Exe(in []byte) bool
- func Fits(in []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 Lit(in []byte) bool
- func Lua(in []byte) bool
- func M4a(in []byte) bool
- func Midi(in []byte) bool
- func Mkv(in []byte) bool
- func Mobi(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 NdJson(in []byte) bool
- func Odf(in []byte) bool
- func Odg(in []byte) bool
- func Odp(in []byte) bool
- func Ods(in []byte) bool
- func Odt(in []byte) bool
- func Ogg(in []byte) bool
- func Otf(in []byte) bool
- func Otg(in []byte) bool
- func Otp(in []byte) bool
- func Ots(in []byte) bool
- func Ott(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 Rar(in []byte) bool
- func Rss(in []byte) bool
- func Rtf(in []byte) bool
- func SevenZ(in []byte) bool
- func Shp(in []byte) bool
- func Shx(in []byte) bool
- func Sqlite(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 Threemf(in []byte) bool
- func Tiff(in []byte) bool
- func True([]byte) bool
- func Tsv(in []byte) bool
- func Txt(in []byte) bool
- func VCard(in []byte) bool
- func Voc(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 Xar(in []byte) bool
- func Xliff(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 ¶
const ReadLimit = 2048
ReadLimit is the maximum number of bytes read from the input when detecting a reader.
Variables ¶
This section is empty.
Functions ¶
func Dbf ¶ added in v0.3.3
Dbf matches a dBase file. https://www.dbase.com/Knowledgebase/INT/db7_file_fmt.htm
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.
func Shp ¶ added in v0.3.3
Shp matches a shape format file. https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf
func Shx ¶ added in v0.3.3
Shx matches a shape index format file. https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf
Types ¶
This section is empty.
Notes ¶
Bugs ¶
The "type" key should be searched for in the root object.