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:
|
go:
|
||||||
- 1.4.2
|
- 1.4.2
|
||||||
|
|
||||||
go_import_path: go.bug.st/serial
|
go_import_path: go.bug.st/serial.v1
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- TEST_OS=linux TEST_ARCH=386
|
- 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.
|
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
|
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.
|
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:
|
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
|
It is possibile to get the list of available serial ports with the
|
||||||
GetPortsList function:
|
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
|
This library doesn't make use of cgo and "C" package, so it's a pure go library
|
||||||
that can be easily cross compiled.
|
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 "fmt"
|
||||||
import "log"
|
import "log"
|
||||||
import "go.bug.st/serial"
|
import "go.bug.st/serial.v1"
|
||||||
|
|
||||||
func ExampleGetPortsList() {
|
func ExampleGetPortsList() {
|
||||||
ports, err := serial.GetPortsList()
|
ports, err := serial.GetPortsList()
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ package serial_test
|
|||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
import "log"
|
import "log"
|
||||||
import "go.bug.st/serial"
|
import "go.bug.st/serial.v1"
|
||||||
|
|
||||||
func ExampleSerialPort_SetMode() {
|
func ExampleSerialPort_SetMode() {
|
||||||
port, err := serial.Open("/dev/ttyACM0", &serial.Mode{})
|
port, err := serial.Open("/dev/ttyACM0", &serial.Mode{})
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ package serial_test
|
|||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
import "log"
|
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
|
// 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.
|
// 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.
|
// 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
|
// Port is the interface for a serial Port
|
||||||
type Port interface {
|
type Port interface {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// 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"
|
import "syscall"
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// 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 {
|
func termiosMask(data int) uint32 {
|
||||||
return uint32(data)
|
return uint32(data)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// 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
|
// termios manipulation functions
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// 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"
|
import "syscall"
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
// +build linux darwin
|
// +build linux darwin
|
||||||
|
|
||||||
package serial // import "go.bug.st/serial"
|
package serial // import "go.bug.st/serial.v1"
|
||||||
|
|
||||||
import "io/ioutil"
|
import "io/ioutil"
|
||||||
import "regexp"
|
import "regexp"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// 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
|
// mksyscall.pl serial_darwin.go
|
||||||
// The generated stub is modified to make it compile under the "serial" package
|
// 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"
|
import "syscall"
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
// mksyscall.pl serial_linux.go
|
// mksyscall.pl serial_linux.go
|
||||||
// The generated stub is modified to make it compile under the "serial" package
|
// 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"
|
import "syscall"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user