Registry / other / google-gousb

google-gousb

JSON →
library1.1.3gogounverified

Package gousb provides a low-level interface to attached USB devices.

go get github.com/google/gousb
INSTALL
IMPORT
SIG · GOOGLE-GOUSB
G
google-gousb
othergov1.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gousb
github.com/google/gousb

Opens a USB context and lists all connected devices.

package main import ( "fmt" "github.com/google/gousb" ) func main() { ctx := gousb.NewContext() defer ctx.Close() devices, err := ctx.OpenDevices(func(desc *gousb.DeviceDesc) bool { return true }) if err != nil { fmt.Println(err) } fmt.Println(len(devices)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Meta
1
Resources
google-gousb — go get google-gousb · libregistry