diff --git a/.travis.yml b/.travis.yml index 2bbb46c..dda6824 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index f2b1950..3ba1707 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/doc.go b/doc.go index d7f6fea..647e88f 100644 --- a/doc.go +++ b/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" diff --git a/example_getportlist_test.go b/example_getportlist_test.go index 79ff243..5ac8244 100644 --- a/example_getportlist_test.go +++ b/example_getportlist_test.go @@ -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() diff --git a/example_serialport_test.go b/example_serialport_test.go index eb51176..4e6de61 100644 --- a/example_serialport_test.go +++ b/example_serialport_test.go @@ -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{}) diff --git a/example_test.go b/example_test.go index 3805210..0f39d26 100644 --- a/example_test.go +++ b/example_test.go @@ -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. diff --git a/serial.go b/serial.go index 805f979..612e447 100644 --- a/serial.go +++ b/serial.go @@ -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 { diff --git a/serial_darwin.go b/serial_darwin.go index 7a1da90..ad970a8 100644 --- a/serial_darwin.go +++ b/serial_darwin.go @@ -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" diff --git a/serial_darwin_386.go b/serial_darwin_386.go index a88e554..d3ad4a5 100644 --- a/serial_darwin_386.go +++ b/serial_darwin_386.go @@ -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) diff --git a/serial_darwin_amd64.go b/serial_darwin_amd64.go index 377c614..4014596 100644 --- a/serial_darwin_amd64.go +++ b/serial_darwin_amd64.go @@ -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 diff --git a/serial_linux.go b/serial_linux.go index 0369a82..983975f 100644 --- a/serial_linux.go +++ b/serial_linux.go @@ -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" diff --git a/serial_unix.go b/serial_unix.go index 357ee25..773642c 100644 --- a/serial_unix.go +++ b/serial_unix.go @@ -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" diff --git a/serial_windows.go b/serial_windows.go index a28bf73..07cdd9c 100644 --- a/serial_windows.go +++ b/serial_windows.go @@ -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" /* diff --git a/syscall_darwin.go b/syscall_darwin.go index f0b87e2..c8cd031 100644 --- a/syscall_darwin.go +++ b/syscall_darwin.go @@ -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" diff --git a/syscall_linux.go b/syscall_linux.go index 79ff6d3..cb216b1 100644 --- a/syscall_linux.go +++ b/syscall_linux.go @@ -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"