downloader icon indicating copy to clipboard operation
downloader copied to clipboard

并发下载的示例程序

Results 3 downloader issues
Sort by recently updated
recently updated
newest added

``` // getPartDir 部分文件存放的目录 func (d *Downloader) getPartDir(filename string) string { return strings.SplitN(filename, ".", 2)[0] } ``` 这种以点分隔写法,对带点的文件非常不好,如:`https://go.dev/dl/go1.17.7.src.tar.gz` 可以改为: `path.Dir(filename)`

![image](https://user-images.githubusercontent.com/6211616/130238036-135b48b7-fe50-4be5-a754-51e700f5777c.png) go version: 1.16

``` D:\test\download>downloader.exe -u "http://dl-c.iccgame.com/Pcik/pk15-client_20220608.zip" -o pk15-client_20220608.zip -n 10 downloading... 44% [=====================> ] (10.014 MB/s) [45s:58s]^C D:\test\download>downloader.exe -u "http://dl-c.iccgame.com/Pcik/pk15-client_20220608.zip" -o pk15-client_20220608.zip -n 15 downloading... 100% [==================================================] (15.072 MB/s) ``` 第一次打开占用内存很小, 半截中断,重新接着下载,占用内存很高.