mime

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectFileType

func DetectFileType(fn string) (typ string, err kv.Error)

DetectFileType can be used to examine the contexts of a file and return the most likely match for its contents as a mime type.

func MimeFromExt

func MimeFromExt(name string) (fileType string, err kv.Error)

MimeFromExt is used to characterize a mime type from a files extension

Types

This section is empty.

Jump to

Keyboard shortcuts

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