Registry / utility / wailsapp-mimetype

wailsapp-mimetype

JSON →
library1.4.1gogounverified

Detect MIME types of files using magic number signatures.

go get github.com/wailsapp/mimetype
INSTALL
IMPORT
SIG · WAILSAPP-MIMETYPE
W
wailsapp-mimetype
utilitygov1.4.1
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/wailsapp/mimetype

Detect MIME type from a byte slice.

package main import ( "fmt" "github.com/wailsapp/mimetype" ) func main() { mime := mimetype.Detect([]byte("<html></html>")) fmt.Println(mime.String()) }
Debug
Known issues
gotchaDetectReader consumes the reader; cannot reuse without buffering.
fix
Use io.TeeReader or buffer the input before detection.
affects: all
Upgrade
Version history
1.4.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
wailsapp-mimetype — go get wailsapp-mimetype · libregistry