detect

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectFromFile

func DetectFromFile(path string) (mime string, isBinary bool, err error)

func IsBinary

func IsBinary(mime string) bool

func Language

func Language(path string) string

func LanguageFromExtension

func LanguageFromExtension(ext string) string

func LanguageFromFile

func LanguageFromFile(path string) string

func LanguageFromShebang

func LanguageFromShebang(content []byte) string

func MIME

func MIME(path string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL