mime

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2019 License: ISC Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedMimeType = errors.New("unsupported MIME type")
)

Functions

func DetectMimeType

func DetectMimeType(data []byte) string

DetectMimeType returns the file MIME type

func MimeValid

func MimeValid(s string) bool

MimeValid returns true if the passed string is a valid MIME type, false otherwise.

func ValidMimeTypes

func ValidMimeTypes() []string

ValidMimeTypes returns the list of supported MIME types.

Types

This section is empty.

Jump to

Keyboard shortcuts

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