Help us shape the future of Go! Take the 2026 Go Developer Survey

mimedb

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: AGPL-3.0 Imports: 1 Imported by: 2

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

}{}/* 1201 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