Documentation ¶
Index ¶
Constants ¶
View Source
const ( B = 1 KB = 1024 * B MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
func CalcFileHexMD5 ¶
func CalcFileHexMD5(file io.ReadSeeker) (string, error)
func FileIsImage ¶
func FileIsImage(file io.ReadSeeker) (bool, error)
func GetFileMIME ¶
func GetFileMIME(file io.ReadSeeker) (string, error)
GetFileMIME return file mime type: https://mimesniff.spec.whatwg.org/
func GetFileMIMEType ¶
func GetFileMIMEType(file io.ReadSeeker) (*mimetype.MIME, error)
func MIMEIsImage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.