vmime

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidMimeType = errors.New("invalid mime type")

ErrInvalidMimeType is returned if the mime type is invalid.

View Source
var MimeTypeRe = regexp.MustCompile(`^[-\w.]+/[-\w.]+$`)

MimeTypeRe is used to check mime types.

Functions

func IsValidMimeType

func IsValidMimeType(str string) bool

IsValidMimeType checks if a string is a valid mime type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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