Registry / utility / gabriel-vasile-mimetype

gabriel-vasile-mimetype

JSON →
library1.4.13gogounverified

Detects the MIME type of a file using magic number signatures.

go get github.com/gabriel-vasile/mimetype
INSTALL
IMPORT
SIG · GABRIEL-VASILE-MIM
G
gabriel-vasile-mimetype
utilitygov1.4.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mimetype
github.com/gabriel-vasile/mimetype

Detects MIME type from a byte slice.

package main import ( "fmt" "github.com/gabriel-vasile/mimetype" ) func main() { mime := mimetype.Detect([]byte("%PDF")) fmt.Println(mime.String()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.13latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gabriel-vasile-mimetype — go get gabriel-vasile-mimetype · libregistry