mime

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtensionByType

func ExtensionByType(typ string) string

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

func TypeByExtension(ext string) string

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.

Jump to

Keyboard shortcuts

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