Documentation ¶
Overview ¶
Package mediatype implements the IANA Media Type standard.
Although a partial implementation exists in the standard library under pkg/mime, it misses functionality, such as representation of suffices, and an explicit container format for media types. This package wraps the library, providing those functions.
For Further information on media types see https://www.iana.org/assignments/media-types/media-types.xhtml
Index ¶
Constants ¶
View Source
const (
HeaderContentType = "Content-Type"
)
Variables ¶
This section is empty.
Functions ¶
func SetContentTypeHeader ¶
func SetContentTypeHeader(m *MediaType, w http.ResponseWriter)
Types ¶
type MediaType ¶
See: https://en.wikipedia.org/wiki/Media_type
func (*MediaType) Identifier ¶
func (*MediaType) TypeEquals ¶
Click to show internal directories.
Click to hide internal directories.