file

package
v1.1.33 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileExtension

func GetFileExtension(filename string) string

GetFileExtension 获取文件后缀

func GetFileSizeFromFile

func GetFileSizeFromFile(file multipart.File) (int64, error)

GetFileSizeFromFile 通过 multipart.File 获取文件大小(字节) 常用于 HTTP 文件上传场景

func GetFileSizeFromPath

func GetFileSizeFromPath(filePath string) (int64, error)

GetFileSizeFromPath 通过文件路径获取文件大小(字节)

func GetFileType

func GetFileType(fileName string) string

GetFileType 获取文件类型

Types

This section is empty.

Jump to

Keyboard shortcuts

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