mimes

package
v0.0.140 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package mimes provides mime types described on mozilla.org https://developer.mozilla.org/ru/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types https://developer.mozilla.org/ru/docs/Web/Manifest

Index

Constants

View Source
const (
	AACAudio                          = "audio/aac"
	AbiWordDocument                   = "application/x-abiword"
	ArchiveDocument                   = "application/x-freearc"
	AudioVideoInterleave              = "video/x-msvideo"
	AmazonKindleEBook                 = "application/vnd.amazon.ebook"
	BinaryData                        = "application/octet-stream"
	WindowsBitmapGraphics             = "image/bmp"
	BZipArchive                       = "application/x-bzip"
	BZip2Archive                      = "application/x-bzip2"
	CShellScript                      = "application/x-csh"
	CascadingStyleSheets              = "text/css"
	CommaSeparatedValues              = "text/csv"
	MicrosoftWord                     = "application/msword"
	MicrosoftWordOpenXML              = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
	MicrosoftExcel                    = "application/vnd.ms-excel"
	MicrosoftExcelOpenXML             = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
	MicrosoftPowerPoint               = "application/vnd.ms-powerpoint"
	MicrosoftPowerPointOpenXML        = "application/vnd.openxmlformats-officedocument.presentationml.presentation"
	MicrosoftVisio                    = "application/vnd.visio"
	MicrosoftEmbeddedOpenTypeFont     = "application/vnd.ms-fontobject"
	ElectronicPublication             = "application/epub+zip"
	GZipCompressedArchive             = "application/gzip"
	GraphicsInterchangeFormat         = "image/gif"
	HyperTextMarkupLanguage           = "text/html"
	Icon                              = "image/vnd.microsoft.icon"
	ICalendar                         = "text/calendar"
	JavaArchive                       = "application/java-archive"
	JPEGImages                        = "image/jpeg"
	JavaScript                        = "text/javascript"
	JSON                              = "application/json"
	JSONLD                            = "application/ld+json"
	MusicalInstrumentDigitalInterface = "audio/midi"
	MP3Audio                          = "audio/mpeg"
	MPEGVideo                         = "video/mpeg"
	AppleInstallerPackage             = "application/vnd.apple.installer+xml"
	OpenDocumentPresentation          = "application/vnd.oasis.opendocument.presentation"
	OpenDocumentSpreadsheet           = "application/vnd.oasis.opendocument.spreadsheet"
	OpenDocumentText                  = "application/vnd.oasis.opendocument.text"
	OGGAudio                          = "audio/ogg"
	OGGVideo                          = "video/ogg"
	OGG                               = "application/ogg"
	OpusAudio                         = "audio/opus"
	OpenTypeFont                      = "font/otf"
	PortableNetworkGraphics           = "image/png"
	AdobePortableDocumentFormat       = "application/pdf"
	PHPHypertextPreprocessor          = "application/php"
	RARArchive                        = "application/vnd.rar"
	RichTextFormat                    = "application/rtf"
	BourneShellScript                 = "application/x-sh"
	ScalableVectorGraphics            = "image/svg+xml"
	AdobeFlashDocument                = "application/x-shockwave-flash"
	TapeArchive                       = "application/x-tar"
	TaggedImageFileFormat             = "image/tiff"
	MPEGTransportStream               = "video/mp2t"
	TrueTypeFont                      = "font/ttf"
	Text                              = "text/plain"
	WaveformAudio                     = "audio/wav"
	WEBMAudio                         = "audio/webm"
	WEBMVideo                         = "video/webm"
	WEBPImage                         = "image/webp"
	WebOpenFontFormat                 = "font/woff"
	WebOpenFontFormat2                = "font/woff2"
	XHTML                             = "application/xhtml+xml"
	ZIPArchive                        = "application/zip"
	SevenZipArchive                   = "application/x-7z-compressed"
	XML                               = "application/xml"
	WebManifest                       = "application/manifest+json"

	FormUrlencoded    = "application/x-www-form-urlencoded"
	FormMultipartData = "multipart/form-data"
)

Variables

This section is empty.

Functions

func GetByExt

func GetByExt(ext string) string

GetByExt return mime type by file extension

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL