mime

package
v0.0.0-...-7e1f343 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectFileExt

func DetectFileExt(s string) string

DetectFileExt will detect mime with file's extension name.

Input string SHOULD NOT has leading "."

Valid example: pdf, gz

func DetectFilePath

func DetectFilePath(s string) string

DetectFilePath will detect mime with files' path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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