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

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.
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
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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