/dload

A download tool written in golang. It utilises goroutines to download, while giving a chunked view of the download progress

Primary LanguageGoOtherNOASSERTION

license Go Report Card

Dload

A golang CLI module for file download. You only need to use one method that initiates the download and sets the download directory.

Installation

The module can be added to your module by using:

go get github.com/arthurkay/dload

To use this module in your applicaton, first import it, then you can use it by using the Download(url, dest string). e.g

import (
    ...
    "github.com/arthurkay/dload"
    ...
)

Then somewhere in your function call the Download method passing the url to download from and the destination to save the file to, like below:

...
dload.Download("example.com/download/something.mp4", "./")
...

© Arthur Kalikiti 2021