mime

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIME_TEXT  = "text/plain"
	MIME_OCTET = "application/octet-stream"

	MIME_JSON          = "application/x-json"
	MIME_JSON_ALT      = "text/json" // no utf8
	MIME_JSON_OFFICIAL = "application/json"
	MIME_XML           = "application/xml"
	MIME_YAML          = "application/x-yaml"
	MIME_YAML_ALT      = "text/yaml" // no utf8
	MIME_YAML_OFFICIAL = "application/yaml"

	MIME_GZIP    = "application/gzip"
	MIME_TAR     = "application/x-tar"
	MIME_TGZ     = "application/x-tgz"
	MIME_TGZ_ALT = MIME_TAR + "+gzip"

	MIME_JAR = "application/x-jar"
)

Variables

This section is empty.

Functions

func BaseType

func BaseType(mime string) string

func IsGZip

func IsGZip(mime string) bool

func IsJSON

func IsJSON(mime string) bool

func IsMoreGeneral

func IsMoreGeneral(m string, specific string) bool

func IsYAML

func IsYAML(mime string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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