file

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFileType

func ValidateFileType(src multipart.File) error

Types

type MIME

type MIME string
var (
	MIME_JPG  MIME = "image/jpg"
	MIME_JPEG MIME = "image/jpeg"
	MIME_GIF  MIME = "image/gif"
	MIME_PNG  MIME = "image/png"
	MIME_WEBP MIME = "image/webp"
	MIME_MP4  MIME = "video/mp4"

	MIMEAUTH = []MIME{
		MIME_JPEG,
		MIME_JPG,
		MIME_GIF,
		MIME_PNG,
		MIME_WEBP,
		MIME_MP4,
	}
)

func (MIME) String

func (m MIME) String() string

Jump to

Keyboard shortcuts

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