Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func CopyFile(dst, src string) error func IsRegular(f os.FileInfo) bool func TempDir(namePrefix string, cb func(tmpDir string, err error)) func TempFile(namePrefix string, cb func(tmpFile *os.File, err error)) type Downloader func NewDownloader(saveDir string) Downloader Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CopyFile ¶ func CopyFile(dst, src string) error func IsRegular ¶ func IsRegular(f os.FileInfo) bool func TempDir ¶ func TempDir(namePrefix string, cb func(tmpDir string, err error)) func TempFile ¶ func TempFile(namePrefix string, cb func(tmpFile *os.File, err error)) Types ¶ type Downloader ¶ type Downloader interface { DownloadFile(string) (int64, string, error) RemoveFile() error SavePath() string } func NewDownloader ¶ func NewDownloader(saveDir string) Downloader Source Files ¶ View all Source files file_download.go file_utils_notwin.go iocopy.go tmp_utils.go Click to show internal directories. Click to hide internal directories.