Versions in this module Expand all Collapse all v2 v2.0.3 Mar 25, 2021 Changes in this version + const Default + const Glob + const Magic + type MediaType struct + Acronym string + Alias []string + Comment string + ExpandedAcronym string + Extensions []string + GenericIcon string + Icon string + Media string + SubClassOf []string + Subtype string + func Match(data []byte, filename string, preference ...int) MediaType + func MatchFile(f *os.File, limAndPref ...int) (MediaType, error) + func MatchFilePath(path string, limAndPref ...int) (m MediaType, err error) + func MatchGlob(filename string) MediaType + func MatchMagic(data []byte) MediaType + func MatchReader(r io.Reader, filename string, limAndPref ...int) (MediaType, error) + func MatchTreeMagic(path string) (MediaType, error) + func MatchXML(data []byte) MediaType + func MatchXMLReader(r io.Reader, limit int) MediaType + func (m MediaType) IsExtension(ext string) bool + func (m MediaType) MediaType() string Other modules containing this package github.com/taelerwatkins-tcn/mimemagic