Documentation
¶
Index ¶
- Variables
- func ChkMd5Info(filepath string, md5Str string) error
- func Confirm(prompt string) bool
- func DirExist(dirpath string) bool
- func ExecLinuxCmd(cmdStr string) ([]byte, error)
- func FileExist(filepath string) bool
- func Md5File(filepath string) (string, error)
- func PostFile(fileParam, filePath string, extraParams map[string]string, targetURL string) error
- func TarGz(src string, dstTgz string, ow bool) error
- func UnTarGz(srcTarGz string, dstDir string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileExisted = "target file %s is existed"
ErrFileExisted error message when file exist
View Source
var ErrMd5Check = "md5 is not same: Origin MD5(%s)\tCurrent MD5(%s)"
ErrMd5Check error message when check md5
View Source
var ErrUploadFile = "upload file failed: URL(%s)\nfilename(%s)\nmessage(%s)"
ErrUploadFile error message when upload file failed
Functions ¶
func ChkMd5Info ¶
ChkMd5Info check md5 info is same or not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.