-
Notifications
You must be signed in to change notification settings - Fork 0
/
meta.go
148 lines (143 loc) · 5.61 KB
/
meta.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
package spider
const (
ContentTypeACC = ".acc"
ContentTypeABW = ".abw"
ContentTypeARC = ".arc"
ContentTypeAVI = ".avi"
ContentTypeAZW = ".azw"
ContentTypeBIN = ".bin"
ContentTypeBMP = ".bmp"
ContentTypeBZ = ".bz"
ContentTypeBZ2 = ".bz2"
ContentTypeCSH = ".csh"
ContentTypeCSS = ".css"
ContentTypeCSV = ".csv"
ContentTypeDOC = ".doc"
ContentTypeDOCX = ".docx"
ContentTypeEOT = ".eot"
ContentTypeEPUB = ".epub"
ContentTypeGIF = ".gif"
ContentTypeHTM = ".htm"
ContentTypeHTML = ".html"
ContentTypeICO = ".ico"
ContentTypeICS = ".ics"
ContentTypeJAR = ".jar"
ContentTypeJPEG = ".jpeg"
ContentTypeJPG = ".jpg"
ContentTypeJS = ".js"
ContentTypeJSON = ".json"
ContentTypeJSONLD = ".jsonld"
ContentTypeMID = ".mid"
ContentTypeMIDI = ".midi"
ContentTypeMJS = ".mjs"
ContentTypeMP3 = ".mp3"
ContentTypeMPEG = ".mpeg"
ContentTypeMPKG = ".mpkg"
ContentTypeODP = ".odp"
ContentTypeODS = ".ods"
ContentTypeODT = ".odt"
ContentTypeOGA = ".oga"
ContentTypeOGV = ".ogv"
ContentTypeOGX = ".ogx"
ContentTypeOTF = ".otf"
ContentTypePNG = ".png"
ContentTypePDF = ".pdf"
ContentTypePPT = ".ppt"
ContentTypePPTX = ".pptx"
ContentTypeRAR = ".rar"
ContentTypeRTF = ".rtf"
ContentTypeSH = ".sh"
ContentTypeSVG = ".svg"
ContentTypeSWF = ".swf"
ContentTypeTAR = ".tar"
ContentTypeTIF = ".tif"
ContentTypeTIFF = ".tiff"
ContentTypeTTF = ".ttf"
ContentTypeTXT = ".txt"
ContentTypeVSD = ".vsd"
ContentTypeWAV = ".wav"
ContentTypeWEBA = ".weba"
ContentTypeWEBM = ".webm"
ContentTypeWEBP = ".webp"
ContentTypeWOFF = ".woff"
ContentTypeWOFF2 = ".woff2"
ContentTypeXHTML = ".xhtml"
ContentTypeXLS = ".xls"
ContentTypeXLSX = ".xlsx"
ContentTypeXML = ".xml"
ContentTypeXUL = ".xul"
ContentTypeZIP = ".zip"
ContentType3GP = ".3GP"
ContentType3G2 = ".3G2"
ContentType7Z = ".7Z"
)
var ContentTypes = map[string]string{
"audio/aac": ContentTypeACC,
"application/x-abiwor": ContentTypeABW,
"application/x-freearc": ContentTypeARC,
"video/x-msvideo": ContentTypeAVI,
"application/vnd.amazon.ebook": ContentTypeAZW,
"application/octet-stream": ContentTypeBIN,
"image/bmp": ContentTypeBMP,
"application/x-bzip": ContentTypeBZ,
"application/x-bzip2": ContentTypeBZ2,
"application/x-csh": ContentTypeCSH,
"text/css": ContentTypeCSS,
"text/csv": ContentTypeCSV,
"application/msword": ContentTypeDOC,
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": ContentTypeDOCX,
"application/vnd.ms-fontobject": ContentTypeEOT,
"application/epub+zip": ContentTypeEPUB,
"image/gif": ContentTypeGIF,
"text/html": ContentTypeHTML,
"image/vnd.microsoft.ico": ContentTypeICO,
"text/calendar": ContentTypeICS,
"application/java-archiv": ContentTypeJAR,
"image/jpeg": ContentTypeJPEG,
"text/javascript": ContentTypeJS,
"application/javascript": ContentTypeJS,
"application/json": ContentTypeJSON,
"application/ld+json": ContentTypeJSONLD,
"audio/midi audio/x-midi": ContentTypeMIDI,
"audio/mpeg": ContentTypeMP3,
"video/mpeg": ContentTypeMPEG,
"application/vnd.apple.installer+xml": ContentTypeMPKG,
"application/vnd.oasis.opendocument.presentation": ContentTypeMPEG,
"application/vnd.oasis.opendocument.spreadsheet": ContentTypeODP,
"application/vnd.oasis.opendocument.text": ContentTypeODS,
"audio/ogg": ContentTypeODT,
"video/ogg": ContentTypeOGA,
"application/ogg": ContentTypeOGX,
"font/otf": ContentTypeOTF,
"image/png": ContentTypePNG,
"application/pdf": ContentTypePDF,
"application/vnd.ms-powerpoint": ContentTypePPT,
"application/vnd.openxmlformats-officedocument.presentationml.presentation": ContentTypePPTX,
"application/x-rar-compressed": ContentTypeRAR,
"application/rtf": ContentTypeRTF,
"application/x-sh": ContentTypeSH,
"image/svg+xml": ContentTypeSVG,
"application/x-shockwave-flash": ContentTypeSWF,
"application/x-tar": ContentTypeTAR,
"image/tiff": ContentTypeTIFF,
"font/ttf": ContentTypeTTF,
"text/plain": ContentTypeTXT,
"application/vnd.visio": ContentTypeVSD,
"audio/wav": ContentTypeWAV,
"audio/webm": ContentTypeWEBA,
"video/webm": ContentTypeWEBM,
"image/webp": ContentTypeWEBP,
"font/woff": ContentTypeWOFF,
"font/woff2": ContentTypeWOFF2,
"application/xhtml+xml": ContentTypeXHTML,
"application/vnd.ms-excel": ContentTypeXLS,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ContentTypeXLSX,
"application/xml": ContentTypeXML,
"application/vnd.mozilla.xul+xml": ContentTypeXUL,
"application/zip": ContentTypeZIP,
"video/3gpp": ContentType3GP,
"audio/3gpp": ContentType3GP,
"video/3gpp2": ContentType3G2,
"audio/3gpp2": ContentType3G2,
"application/x-7z-compressed": ContentType7Z,
}