mirror of
https://github.com/h2non/filetype.git
synced 2026-04-22 23:17:07 +08:00
13 lines
210 B
Go
13 lines
210 B
Go
package types
|
|
|
|
type MIME struct {
|
|
Type string
|
|
Subtype string
|
|
Value string
|
|
}
|
|
|
|
func NewMIME(mime string) MIME {
|
|
kind, subtype := splitMime(mime)
|
|
return MIME{Type: kind, Subtype: subtype, Value: mime}
|
|
}
|