Versions in this module Expand all Collapse all v0 v0.0.1 Oct 19, 2021 Changes in this version + var ErrBucket = errors.New("Invalid Image bucket!") + var ErrInvalidImage = errors.New("Invalid Image Type!") + var ErrSize = errors.New("Invalid Image size!") + func AcceptImgType(imgType string) bool + func B64ImageSave(savePath, data string, config ImageConf) (suffix string, err error) + func Copy(src, dst string) (int64, error) + func DirSize(path string) (int64, error) + func GetAllFiles(dirPth string) (files []string, err error) + func HttpGet(imgUrl, savePath string) (fileName string, err error) + func Mkdir(dir string) (err error) + func UnzipDir(zipFile, dir string) (err error) + func ZipDir(dir, zipFile string) (err error) + type FinfoPath struct + Finfo os.FileInfo + Fpath string + func Flist(dirPth string) (files []FinfoPath, err error) + type ImageConf struct + MaxHeight int + MaxWidth int