洞察探索open banking如何通过小程序容器技术助力金融企业实现数据安全和数字化转型
589
2022-10-26
Conget是一个用于并发-文件的CLI应用程序
Conget
Conget is a CLI application, which downloads file data concurrently by splitting the data into several chunks and fetch those asynchronously.
Install & Build
Conget uses Cobra for handling command line interaction. Get the dependency with go mod
Build with Makefile
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
Usage
$ 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.
Contributing
Fork itCreate 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
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~