Documentation ¶
Index ¶
- Constants
- func CompressImage(sourcePath string, targetPath string, format string, quality int) error
- func CompressImageExt(sourcePath string, targetPath string, format string, quality int, ...) error
- func CopyFile(src string, dst string) (int64, error)
- func CreateFolderIfNotExists(filePath string, perm os.FileMode)
- func FileExists(path string) bool
- func IsDir(path string) bool
- func NotDir(path string) bool
- func SupportFormat(format string) bool
Constants ¶
View Source
const ( DefaultFileMode = 0766 CopyWhenUnsupported = 1 )
View Source
const CopyFileBuffSize = 1024
Variables ¶
This section is empty.
Functions ¶
func CompressImage ¶ added in v1.0.1
func CompressImageExt ¶ added in v1.0.1
func CreateFolderIfNotExists ¶
CreateFolderIfNotExists 创建临时文件路径,如果他不存在的话
func SupportFormat ¶ added in v1.0.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.