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:
Cristian Maglie
2016-09-04 23:49:24 +02:00
parent f5235118e1
commit b89deafa1c
15 changed files with 18 additions and 18 deletions

View File

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

View File

@@ -1,8 +1,8 @@
[![Build Status](https://travis-ci.org/bugst/go-serial.svg?branch=master)](https://travis-ci.org/bugst/go-serial) [![Build Status](https://travis-ci.org/bugst/go-serial.svg?branch=v1)](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
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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