Documentation
¶
Index ¶
- func BlockRead(fileName string, handle func([]byte) error) error
- func Clear(filePath string) error
- func Copy(src, dst string) (int64, error)
- func CopyFile(src, dst string, overwrite bool) (int64, error)
- func CopyPath(src, dst string) error
- func Download(filename, remoteUrl string) error
- func Exist(filename string) bool
- func IsDir(path string) bool
- func PathExist(path string) bool
- func QiNiuFileHash(filepath string) (string, error)
- func QiNiuHash(f io.Reader, fsize int64) (etag string, err error)
- func Read2Base64(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read2Base64 ¶
Read2Base64 读文件并返回内容的 `base64` 编码。 一般用在图片处理时
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.