Skip to content

Latest commit

 

History

History
103 lines (74 loc) · 2.73 KB

README.md

File metadata and controls

103 lines (74 loc) · 2.73 KB

libusb

Go bindings for the libusb C library.

GoDoc Go Report Card Build Status License Badge

Installation

$ go get github.com/gotmc/libusb/v2

Installing C libusb library

To use libusb package, you'll need to install the libusb C library first.

OS X

$ brew install libusb

Windows

Download and install the latest Windows libusb binaries from libusb.info.

Linux

$ sudo apt-get install -y libusb-dev libusb-1.0-0-dev

Documentation

Documentation can be found at either:

Contributing

Contributions are welcome! To contribute please:

  1. Fork the repository
  2. Create a feature branch
  3. Code
  4. Submit a pull request

Testing

Prior to submitting a pull request, please run:

$ make check
$ make lint

To update and view the test coverage report:

$ make cover

Alternatives

There are other USB Go libraries besides libusb. Below are a few alternatives:

License

libusb is released under the MIT license. Please see the LICENSE.txt file for more information.