mime

package
v0.0.0-...-8725c39 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ExtensionMIMEType ...
	ExtensionMIMEType = map[string]string{}/* 367 elements not displayed */

)

Functions

func DetectContentType

func DetectContentType(name string, content ...io.ReadSeeker) (contentType string, err error)

检测内容类型

func GetFileContentType

func GetFileContentType(r io.Reader) (contentType string, err error)

GetFileContentType 获取文件流的ContentType

func Lookup

func Lookup(extension string) (mimeType string, exist bool)

Lookup 查找

func Set

func Set(extension, mimeType string)

Set 设置

Types

This section is empty.

Jump to

Keyboard shortcuts

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