Help us shape the future of Go! Take the 2026 Go Developer Survey

vmime

package
v1.34.9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 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