Conget is a CLI application, which downloads file data concurrently by splitting the data into several chunks and fetch those asynchronously.
Conget uses Cobra for handling command line interaction.
Get the dependency with go mod
To compile and build the binary file, run this command. it will build the binary in bin/ directory with the name conget.
$ make build
Or for Mac
$ make build-mac
To remove the compiled binary file.
$ make clean
It will remove all the binary file.
For running tests.
$ make test
###Installing or running it without Go
Binary file of latest build is pushed in the bin/ directory, download the file according to your OS and run the command ./conget
$ conget -u http://example.com/example.mp4
The default concurrent number is set to 5 if -c flag is not set. To set the concurrent number provide the number with -c flag. Ex:
$ conget -c 12 -u http://example.com/example.mp4
Note It downloads the file in current directory where you run the command.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Make changes and add them (
git add .
) - Commit your changes (
git commit -m 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new pull request