Documentation ¶
Index ¶
Constants ¶
View Source
const KB = 1024
Variables ¶
View Source
var SIZES = []string{"B", "KB", "MB", "GB"}
Functions ¶
func CalcFileSize ¶
func CalcFileSize(file *multipart.FileHeader) (*string, error)
func GetImageSize ¶
func GetImageSize(file *multipart.FileHeader) (int, int, error)
func ParseFileKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.