YTSFlix_Go/vendor/gopkg.in/h2non/filetype.v1/types/mime.go
2018-11-04 15:58:15 +01:00

15 lines
278 B
Go

package types
// MIME stores the file MIME type values
type MIME struct {
Type string
Subtype string
Value string
}
// Creates a new MIME type
func NewMIME(mime string) MIME {
kind, subtype := splitMime(mime)
return MIME{Type: kind, Subtype: subtype, Value: mime}
}