Documentation ¶
Index ¶
- func AbsolutePath(pth string) string
- func AddPathSepIfNeeded(pth string) string
- func AddSepIfNeeded(pth string) string
- func AddTimeParam(url string) (ret string)
- func CopyFile(src, dst string) (int64, error)
- func Download(url string, dst string) (err error)
- func DownloadAdv(url, filePath string) (dur int64, err error)
- func FileExist(path string) bool
- func GetAbsolutePath(pth string) string
- func GetExeDir() string
- func GetExtName(pathOrUrl string) string
- func GetFileDir(pathOrUrl string) string
- func GetFileName(pathOrUrl string) string
- func GetFileNameWithoutExt(pathOrUrl string) string
- func GetFileSize(pth string) (size int64, err error)
- func GetFilesFromParams(arguments []string) []string
- func GetMd5(pth string) (ret string, err error)
- func GetUserHome() (dir string, err error)
- func GetWorkDir() string
- func GetZipSingleDir(path string) string
- func HTTPDownload(url string) (bytes []byte, err error)
- func IsAbsolutePath(pth string) bool
- func IsDir(f string) bool
- func MkDirIfNeeded(dir string) error
- func ReadFile(filePath string) string
- func ReadFileBuf(filePath string) []byte
- func RemoveFile(dir string) error
- func Upload(url string, files []string, extraParams map[string]string)
- func WriteDownloadFile(dst string, d []byte) (err error)
- func WriteFile(filePath string, content string)
- func ZipFiles(dist string, dir string, files []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
func AddPathSepIfNeeded ¶
func AddSepIfNeeded ¶
func AddTimeParam ¶
func DownloadAdv ¶
func GetAbsolutePath ¶
func GetExtName ¶
func GetFileDir ¶
func GetFileName ¶
func GetFileNameWithoutExt ¶
func GetFileSize ¶
func GetFilesFromParams ¶
func GetUserHome ¶
func GetWorkDir ¶
func GetWorkDir() string
func GetZipSingleDir ¶
func HTTPDownload ¶
func IsAbsolutePath ¶
func MkDirIfNeeded ¶
func ReadFileBuf ¶
func RemoveFile ¶
func WriteDownloadFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.