mime (on golang.org and go.dev)
imports 12 packages, and imported by 3 packages
Involved Source Files
Exported Type Names
(ext, typ string
AddExtensionType sets the MIME type associated with
the extension ext to typ. The extension should begin with
a leading dot, as in ".html".
const BEncoding WordEncoder
BEncoding represents Base64 encoding scheme as defined by RFC 2045.
ExtensionsByType returns the extensions known to be associated with the MIME
type typ. The returned extensions will each begin with a leading dot, as in
".html". When typ has no associated extensions, ExtensionsByType returns an
const QEncoding WordEncoder
QEncoding represents the Q-encoding scheme as defined by RFC 2047.
TypeByExtension returns the MIME type associated with the file extension ext.
The extension ext should begin with a leading dot, as in ".html".
When ext has no associated type, TypeByExtension returns "".
Extensions are looked up first case-sensitively, then case-insensitively.
The built-in table is small but on unix it is augmented by the local
system's mime.types file(s) if available under one or more of these
On Windows, MIME types are extracted from the registry.
Text types have the charset parameter set to "utf-8" by default.
||The pages are generated with Golds v0.1.6-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.|