☰
Debian Codegraph
@
1.1.3+ds1-1
/
/
types
/
mime.go
☽
☼
types/mime.go
code
plain
raw
symbols
SCIP
Expat
2015 Tomás Aparicio <
[email protected]
>
debian/copyright
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
}