A golang CLI module for file download. You only need to use one method that initiates the download and sets the download directory.
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