mattscamp / zerousb

The simplest USB library for Go
GNU Lesser General Public License v3.0
6 stars 1 forks source link
go libusb usb

zerousb

The zerousb package is the simplest wrapper around the native libusb library.

To use zerousb, no extra setup is required as the package bundles and links libusb.

The package supports Linux, macOS, Windows and FreeBSD.

Cross-compiling

Using go get, the embedded C library is compiled into the binary format of your host OS.

Acknowledgements

This library is based on and heavily uses code from the trezord-go package.

Error handling for the libusb integration originates from the gousb library.

License

This USB library is licensed under the GNU Lesser General Public License v3.0 (dictated by libusb).