Introducing go.mod for dep management

This commit is contained in:
Cristian Maglie
2019-12-02 19:51:36 +01:00
parent 24a6610f05
commit df95023074
39 changed files with 71 additions and 50 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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()

View File

@@ -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>

View File

@@ -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>

View File

@@ -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

View File

@@ -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) {

View File

@@ -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"

View File

@@ -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"