fileutil

package
v0.0.0-...-fab0456 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 图片最大数量
	MaxImageSize             = 10 << 20
	ErrUnsupportedFileFormat = errors.New("图片格式不支持")
	ErrFileStorePath         = errors.New("文件存储路径异常")
	ErrFileGenerateName      = errors.New("文件名称生成异常")
	ErrFileSaveFailed        = errors.New("文件保存失败")
)

Functions

func Mkdir

func Mkdir(path string) error

func PathExists

func PathExists(path string) (bool, error)

func UploadImage

func UploadImage(r io.Reader) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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