mimedb

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: AGPL-3.0 Imports: 1 Imported by: 17

Documentation

Overview

Package mimedb is a database of file extension to mime content-type. Definitions are imported from NodeJS mime-db project under MIT license.

Index

Constants

This section is empty.

Variables

View Source
var DB = map[string]struct {
	ContentType  string
	Compressible bool

}{}/* 1096 elements not displayed */

DB - Mime is a collection of mime types with extension as key and content-type as value.

Functions

func TypeByExtension

func TypeByExtension(ext string) string

TypeByExtension resolves the extension to its respective content-type.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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