Versions in this module Expand all Collapse all v0 v0.1.0 Jan 5, 2026 Changes in this version + func IsBinary(contentType string, data []byte) bool + func IsBinaryWithOptions(contentType string, data []byte, opts *Options) bool + func IsText(contentType string, data []byte) bool + type ContentInfo struct + Confidence float64 + Extension string + IsBinary bool + IsText bool + MIMEType string + Method string + func Detect(contentType string, data []byte) ContentInfo + func DetectWithOptions(contentType string, data []byte, opts *Options) ContentInfo + type Options struct + CheckBytes int + HighBitThreshold float64 + TrustContentType bool + func DefaultOptions() *Options