Categorygithub.com/mattscamp/zerousb
modulepackage
0.0.0-20240925174019-b7df8158158c
Repository: https://github.com/mattscamp/zerousb.git
Documentation: pkg.go.dev

# README

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).

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author

# Variables

ErrDeviceClosed is returned for operations where the device closed before or during the execution.
ErrDeviceDisconnected is returned for operations where the device disconnected.
ErrUnsupportedPlatform is returned for all operations where the underlying operating system is not supported by the library.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

ID represents a vendor or product ID.