Documentation
¶
Rendered for windows/amd64
Overview ¶
Example ¶
Example shows how to use the package.
package main
import (
"context"
"log"
usbevent "github.com/christowolf/usb-event"
)
func main() {
n, err := usbevent.Register()
if err != nil {
log.Fatalf("registration failed: %v\n", err)
}
go func() {
for e := range n.Channel {
log.Printf("%+v\n\n", e)
}
}()
n.Run(context.Background())
}
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.