This is a package for detecting MIME types and extensions based on magic numbers. Features include
fast and precise MIME type and file extension detection
long list of supported MIME types
common file formats are prioritized
small and simple API
handles MIME type aliases
thread safe
low memory usage, besides the file header
This package provides a Golang module that uses magic number signatures to detect the MIME type of a file.
Main features:
Fast and precise MIME type and file extension detection.
Supports many MIME types.
Allows to extend with other file formats.
Common file formats are prioritized.
Safe for concurrent usage.
Golang library for media type and file extension detection, based on magic numbers.
Package mimetype uses magic number signatures to detect the MIME type of a file.