Documentation ¶
Overview ¶
error debug
Index ¶
- func Cpfile(originalFilePath, newFilePath string) error
- func CreatePath(path string) error
- func DownProgress(url string, localPath string, fb func(length, downLen int64)) error
- func DownloadFile(url, filename string) error
- func FileExists(path string) (bool, error)
- func GetFileContent(FilePath string) string
- func GetParentDirectory(dirctory, SEPARATOR string) string
- func Geturl(url string) ([]byte, error)
- func IsFileExist(filename string, filesize int64) (bool, error)
- func ReadFile(path string) string
- func Substr(s string, pos, length int) string
- func WriteFile(filePath, data string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownProgress ¶
* * 文件下载 * param url 要下载的文件URL * param localPath 文件保存路径(或文件保存名称) * fb 回调下载进度
func DownloadFile ¶
* * 文件下载 * param url 要下载的文件URL * param filename 文件保存路径(或文件保存名称)
func GetParentDirectory ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.