Go bindings for libaria2.
- If you are using
go module
, add the flowing:
required (
"github.com/coolerfall/aria2go"
)
or you can just use:
$ go get github.com/coolerfall/aria2go
- Prepare libaria2, be sure you have installed
gcc
:
$ cd path/to/aria2go
$ ./prepare.sh
or if you want to compile to arm, be sure you have installed gnueabihf
cross compiler:
$ ./prepare-arm.sh
- Now you can check the example to run.
Copyright (C) 2019 Vincent Cheung (coolingfall@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.