Change import path to "go.bug.st/serial.v1"
This is needed when there are breaking changes in the API.
This commit is contained in:
@@ -3,7 +3,7 @@ language: go
|
||||
go:
|
||||
- 1.4.2
|
||||
|
||||
go_import_path: go.bug.st/serial
|
||||
go_import_path: go.bug.st/serial.v1
|
||||
|
||||
env:
|
||||
- TEST_OS=linux TEST_ARCH=386
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[](https://travis-ci.org/bugst/go-serial)
|
||||
[](https://travis-ci.org/bugst/go-serial)
|
||||
|
||||
A cross-platform serial library for go-lang.
|
||||
|
||||
Documentation and examples: https://godoc.org/go.bug.st/serial
|
||||
Documentation and examples: https://godoc.org/go.bug.st/serial.v1
|
||||
|
||||
License: https://github.com/bugst/go-serial/blob/master/LICENSE
|
||||
|
||||
|
||||
6
doc.go
6
doc.go
@@ -7,10 +7,10 @@
|
||||
/*
|
||||
Package serial is a cross-platform serial library for the go language.
|
||||
|
||||
The canonical import for this library is go.bug.st/serial so the import line
|
||||
The canonical import for this library is go.bug.st/serial.v1 so the import line
|
||||
is the following:
|
||||
|
||||
import "go.bug.st/serial"
|
||||
import "go.bug.st/serial.v1"
|
||||
|
||||
It is possibile to get the list of available serial ports with the
|
||||
GetPortsList function:
|
||||
@@ -82,4 +82,4 @@ serial port:
|
||||
This library doesn't make use of cgo and "C" package, so it's a pure go library
|
||||
that can be easily cross compiled.
|
||||
*/
|
||||
package serial // import "go.bug.st/serial"
|
||||
package serial // import "go.bug.st/serial.v1"
|
||||
|
||||
@@ -8,7 +8,7 @@ package serial_test
|
||||
|
||||
import "fmt"
|
||||
import "log"
|
||||
import "go.bug.st/serial"
|
||||
import "go.bug.st/serial.v1"
|
||||
|
||||
func ExampleGetPortsList() {
|
||||
ports, err := serial.GetPortsList()
|
||||
|
||||
@@ -8,7 +8,7 @@ package serial_test
|
||||
|
||||
import "fmt"
|
||||
import "log"
|
||||
import "go.bug.st/serial"
|
||||
import "go.bug.st/serial.v1"
|
||||
|
||||
func ExampleSerialPort_SetMode() {
|
||||
port, err := serial.Open("/dev/ttyACM0", &serial.Mode{})
|
||||
|
||||
@@ -8,7 +8,7 @@ package serial_test
|
||||
|
||||
import "fmt"
|
||||
import "log"
|
||||
import "go.bug.st/serial"
|
||||
import "go.bug.st/serial.v1"
|
||||
|
||||
// This example prints the list of serial ports and use the first one
|
||||
// to send a string "10,20,30" and prints the response on the screen.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package serial // import "go.bug.st/serial"
|
||||
package serial // import "go.bug.st/serial.v1"
|
||||
|
||||
// Port is the interface for a serial Port
|
||||
type Port interface {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package serial // import "go.bug.st/serial"
|
||||
package serial // import "go.bug.st/serial.v1"
|
||||
|
||||
import "syscall"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package serial // import "go.bug.st/serial"
|
||||
package serial // import "go.bug.st/serial.v1"
|
||||
|
||||
func termiosMask(data int) uint32 {
|
||||
return uint32(data)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package serial // import "go.bug.st/serial"
|
||||
package serial // import "go.bug.st/serial.v1"
|
||||
|
||||
// termios manipulation functions
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package serial // import "go.bug.st/serial"
|
||||
package serial // import "go.bug.st/serial.v1"
|
||||
|
||||
import "syscall"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
// +build linux darwin
|
||||
|
||||
package serial // import "go.bug.st/serial"
|
||||
package serial // import "go.bug.st/serial.v1"
|
||||
|
||||
import "io/ioutil"
|
||||
import "regexp"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
|
||||
package serial // import "go.bug.st/serial"
|
||||
package serial // import "go.bug.st/serial.v1"
|
||||
|
||||
/*
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// mksyscall.pl serial_darwin.go
|
||||
// The generated stub is modified to make it compile under the "serial" package
|
||||
|
||||
package serial // import "go.bug.st/serial"
|
||||
package serial // import "go.bug.st/serial.v1"
|
||||
|
||||
import "syscall"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// mksyscall.pl serial_linux.go
|
||||
// The generated stub is modified to make it compile under the "serial" package
|
||||
|
||||
package serial // import "go.bug.st/serial"
|
||||
package serial // import "go.bug.st/serial.v1"
|
||||
|
||||
import "syscall"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user