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 ¶
IsValidMimeType checks if a string is a valid mime type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.