mime

package
v0.0.0-...-bb1a4e7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MimeList = [17]string{
		mimeApplicationJSON,
		mimeApplicationJSONCharsetUTF8,
		mimeApplicationJavaScript,
		mimeApplicationJavaScriptCharsetUTF8,
		mimeApplicationXML,
		mimeApplicationXMLCharsetUTF8,
		mimeTextXML,
		mimeTextXMLCharsetUTF8,
		mimeApplicationForm,
		mimeApplicationProtobuf,
		mimeApplicationMsgpack,
		mimeTextHTML,
		mimeTextHTMLCharsetUTF8,
		mimeTextPlain,
		mimeTextPlainCharsetUTF8,
		mimeMultipartForm,
		mimeOctetStream,
	}
)

Functions

func ToMimetype

func ToMimetype(p MimePointer) string

Types

type MimePointer

type MimePointer uint8
const (
	MimeApplicationJSON MimePointer = iota
	MimeApplicationJSONCharsetUTF8
	MimeApplicationJavaScript
	MimeApplicationJavaScriptCharsetUTF8
	MimeApplicationXML
	MimeApplicationXMLCharsetUTF8
	MimeTextXML
	MimeTextXMLCharsetUTF8
	MimeApplicationForm
	MimeApplicationProtobuf
	MimeApplicationMsgpack
	MimeTextHTML
	MimeTextHTMLCharsetUTF8
	MimeTextPlain
	MimeTextPlainCharsetUTF8
	MimeMultipartForm
	MimeOctetStream
)

Jump to

Keyboard shortcuts

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