Documentation
¶
Index ¶
- func CalculateSHA1(filePath string) (string, error)
- func CreateFile(filePath string, data []byte) error
- func DownloadFile(filePath string, url string, recover bool, showBar bool) error
- func FileExists(filename string) bool
- func Get(url string) ([]byte, error)
- func Image2Base64(img image.Image) (string, error)
- func IsResponseError(body []byte) bool
- func MakeParentDirs(filePath string) error
- func TryDownloadClient(folderPath string, fileName string, info *model.ClientInfo) (bool, error)
- func UnzipSpecEntity(src string, specPath string, dest string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateSHA1 ¶
CalculateSHA1 Calculate file SHA1 checksum
func CreateFile ¶
func DownloadFile ¶
func IsResponseError ¶
func MakeParentDirs ¶
func TryDownloadClient ¶
TryDownloadClient return need-recover(bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.