Introducing go.mod for dep management
This commit is contained in:
@@ -18,4 +18,4 @@ required in order to access the IOKit Framework. This means that the library
|
||||
cannot be easily cross compiled for GOOS=darwing targets.
|
||||
|
||||
*/
|
||||
package enumerator // import "go.bug.st/serial.v1/enumerator"
|
||||
package enumerator
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package enumerator // import "go.bug.st/serial.v1/enumerator"
|
||||
package enumerator
|
||||
|
||||
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output syscall_windows.go usb_windows.go
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ package enumerator_test
|
||||
|
||||
import "fmt"
|
||||
import "log"
|
||||
import "go.bug.st/serial.v1/enumerator"
|
||||
import "go.bug.st/serial/enumerator"
|
||||
|
||||
func ExampleGetDetailedPortsList() {
|
||||
ports, err := enumerator.GetDetailedPortsList()
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
// +build go1.10,darwin
|
||||
|
||||
package enumerator // import "go.bug.st/serial.v1/enumerator"
|
||||
package enumerator
|
||||
|
||||
// #cgo LDFLAGS: -framework CoreFoundation -framework IOKit
|
||||
// #include <IOKit/IOKitLib.h>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
// and is no more maintained or bugfixed, please update your go version
|
||||
// to at least 1.10 to get the latest updates.
|
||||
|
||||
package enumerator // import "go.bug.st/serial.v1/enumerator"
|
||||
package enumerator
|
||||
|
||||
// #cgo LDFLAGS: -framework CoreFoundation -framework IOKit
|
||||
// #include <IOKit/IOKitLib.h>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package enumerator // import "go.bug.st/serial.v1/enumerator"
|
||||
package enumerator
|
||||
|
||||
func nativeGetDetailedPortsList() ([]*PortDetails, error) {
|
||||
// TODO
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package enumerator // import "go.bug.st/serial.v1/enumerator"
|
||||
package enumerator
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"go.bug.st/serial.v1"
|
||||
"go.bug.st/serial"
|
||||
)
|
||||
|
||||
func nativeGetDetailedPortsList() ([]*PortDetails, error) {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package enumerator // import "go.bug.st/serial.v1/enumerator"
|
||||
package enumerator
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package enumerator // import "go.bug.st/serial.v1/enumerator"
|
||||
package enumerator
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
Reference in New Issue
Block a user