filedown

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(url string) *model

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL