upload

package
v0.0.0-...-76b4d0c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckImage

func CheckImage(src string) error

CheckImage 检查上传图片所需(权限、文件夹)

func CheckImageExt

func CheckImageExt(fileName string) bool

CheckImageExt 检查图片后缀

func CheckImageSize

func CheckImageSize(f multipart.File) bool

CheckImageSize 检查图片大小

func GetImageFullPath

func GetImageFullPath() string

GetImageFullPath 获取图片完整路径

func GetImageFullUrl

func GetImageFullUrl(name string) string

GetImageFullUrl 获取图片完整访问URL

func GetImageName

func GetImageName(name string) string

GetImageName 获取图片名称

func GetImagePath

func GetImagePath() string

GetImagePath 获取图片路径

Types

This section is empty.

Jump to

Keyboard shortcuts

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