-
Notifications
You must be signed in to change notification settings - Fork 0
/
enum.go
27 lines (24 loc) · 827 Bytes
/
enum.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
package cstorage
type MimeType string
//goland:noinspection GoUnusedConst
const (
MimeTypePdf MimeType = "application/pdf"
MimeTypeText MimeType = "text/plain"
MimeTypeAvif MimeType = "image/avif"
MimeTypeCss MimeType = "text/css; charset=utf-8"
MimeTypeGif MimeType = "image/gif"
MimeTypeHtml MimeType = "text/html; charset=utf-8"
MimeTypeJpeg MimeType = "image/jpeg"
MimeTypeJs MimeType = "text/javascript; charset=utf-8"
MimeTypeJson MimeType = "application/json"
MimeTypePng MimeType = "image/png"
MimeTypeMp4 MimeType = "video/mp4"
MimeTypeMp3 MimeType = "audio/mp3"
MimeTypeSvg MimeType = "image/svg+xml"
MimeTypeWasm MimeType = "application/wasm"
MimeTypeWebp MimeType = "image/webp"
MimeTypeXml MimeType = "text/xml; charset=utf-8"
)
func (f MimeType) String() string {
return string(f)
}