Ready to add the test for this project.

This commit is contained in:
zicla
2019-04-25 03:05:06 +08:00
parent b2a3e4e225
commit 30255dc679
2 changed files with 15 additions and 24 deletions

View File

@ -362,15 +362,3 @@ func DownloadFile(
}
}
// 从指定的url下载一个文件。参考https://golangcode.com/download-a-file-from-a-url/
func HttpDownloadFile(url string) io.Reader {
// Get the data
resp, err := http.Get(url)
PanicError(err)
return resp.Body
}