代码拉取完成,页面将自动刷新
aria2 go client
install
go get github.com/fengjx/aria2go
aria2Cli := aria2go.NewClient("1024", "http://localhost:6800/jsonrpc")
opt := &Options{
Dir: "/path/to/download/dir",
}
resp, err := aria2Cli.AddDownload("https://github.com/fengjx/java-hot-reload-agent/releases/download/hot-reload-agent-all-1.1.0/hot-reload-agent-bin.zip", opt)
package aria2go // import "github.com/fengjx/aria2go"
TYPES
func NewClient(token string, jsonRpcUrl string) *Client
NewClient create aria2 client
func (cli *Client) AddDownload(url string, opt *Options) (*http.Response, error)
AddDownload add download task
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。