Debian Codegraph @

types/mime.go

raw symbols SCIP
1 package types
2
3 // MIME stores the file MIME type values
4 type MIME struct {
5 Type string
6 Subtype string
7 Value string
8 }
9
10 // Creates a new MIME type
11 func NewMIME(mime string) MIME {
12 kind, subtype := splitMime(mime)
13 return MIME{Type: kind, Subtype: subtype, Value: mime}
14 }