Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtensionByType ¶
ExtensionByType returns the file extension associated with the media type typ. When typ has no associated extension, ExtensionByType returns an empty string.
func TypeByExtension ¶ added in v0.7.0
TypeByExtension returns the media type associated with the file extension ext. The extension ext should begin with a leading dot, as in ".json" When ext has no associated type, TypeByExtension returns "application/octet-stream"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.