Go bindings for the C libusb library.
Go bindings for the libusb C library.
$ go get github.com/gotmc/libusb/v2
To use libusb package, you'll need to install the libusb C library first.
$ brew install libusb
Download and install the latest Windows libusb binaries from libusb.info.
$ sudo apt-get install -y libusb-dev libusb-1.0-0-dev
Documentation can be found at either:
$ godoc -http=:6060
Contributions are welcome! To contribute please:
Prior to submitting a pull request, please run:
$ make check
$ make lint
To update and view the test coverage report:
$ make cover
There are other USB Go libraries besides libusb. Below are a few alternatives:
libusb is released under the MIT license. Please see the LICENSE.txt file for more information.