Versions in this module Expand all Collapse all v1 v1.4.2 Oct 20, 2022 Changes in this version + func EqualsAny(s string, mimes ...string) bool + func Extend(detector func(raw []byte, limit uint32) bool, mime, extension string, ...) + func SetLimit(limit uint32) + type MIME struct + func Detect(in []byte) *MIME + func DetectFile(path string) (*MIME, error) + func DetectReader(r io.Reader) (*MIME, error) + func Lookup(mime string) *MIME + func (m *MIME) Extend(detector func(raw []byte, limit uint32) bool, mime, extension string, ...) + func (m *MIME) Extension() string + func (m *MIME) Is(expectedMIME string) bool + func (m *MIME) Parent() *MIME + func (m *MIME) String() string