mimedb

package
v0.0.0-...-d8f8204 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

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