mime

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package mime provides MIME type detection based on file extensions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentType

func ContentType(filename string) string

ContentType returns the MIME type for a given filename based on its extension.

If the extension is unknown, it 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