package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Mar 4, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
filedown
Concurrent block download of files
Use
go get github.com/yanmengfei/filedown
package main
import (
"fmt"
"github.com/yanmengfei/filedown"
)
func main() {
var core = filedown.New("https://ftp.afrinic.net/pub/dbase/afrinic.db.gz") // new object
core.SetConcurrency(24) // set concurrency number
core.SetOutput("./afrinic.db.gz") // set output filepath
if err := core.Do(); err != nil {
panic(err)
}
}
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.