This commit is contained in:
liwei committed 2021-03-05 19:52:55 +08:00
1 parent bdce3c84a3
commit 74d0e8e0bc
6 files changed
+102 -73

No files matched your search

+3
View File
@@ -26,6 +26,9 @@ func TestDownloader_Create(t *testing.T) {
if err != nil {
t.Fatal(err)
}
downloader.Listener(func(taskInfo *TaskInfo, status base.Status) {
fmt.Printf("task:%s,status %d\n", taskInfo.ID, status)
})
err = downloader.Create(res, &base.Options{
Path: "E:\\test\\gopeed\\http",
Connections: 4,