forked from karalabe/usb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dummy.go
25 lines (22 loc) · 859 Bytes
/
dummy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// +build dummy
// This file is part of a workaround for `go mod vendor` which won't vendor
// C files if there's no Go file in the same directory.
// This would prevent the hidapi/hidapi/hidapi.h file to be vendored.
//
// This Go file imports the c directory where there is another dummy.go file which
// is the second part of this workaround.
//
// These two files combined make it so `go mod vendor` behaves correctly.
//
// See this issue for reference: https://github.com/golang/go/issues/26366
package main
import (
_ "github.com/karalabe/usb/hidapi"
_ "github.com/karalabe/usb/hidapi/hidapi"
_ "github.com/karalabe/usb/hidapi/libusb"
_ "github.com/karalabe/usb/hidapi/mac"
_ "github.com/karalabe/usb/hidapi/windows"
_ "github.com/karalabe/usb/libusb"
_ "github.com/karalabe/usb/libusb/libusb"
_ "github.com/karalabe/usb/libusb/libusb/os"
)