Reorganized repository
This commit is contained in:
@@ -2,7 +2,7 @@ include $(GOROOT)/src/Make.inc
|
|||||||
|
|
||||||
TARG=github.com/bugst/go-serial/serial
|
TARG=github.com/bugst/go-serial/serial
|
||||||
|
|
||||||
GOFILES=serial.go native_$(GOOS).go native_z$(GOOS).go
|
GOFILES=serial.go native_$(GOOS).go syscall_$(GOOS).go
|
||||||
|
|
||||||
include $(GOROOT)/src/Make.pkg
|
include $(GOROOT)/src/Make.pkg
|
||||||
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
package main
|
package serial
|
||||||
|
|
||||||
import "bug.st/go-serial/serial"
|
import "go.bug.st/serial"
|
||||||
import "fmt"
|
import "fmt"
|
||||||
import "log"
|
import "log"
|
||||||
|
|
||||||
func main() {
|
func ExampleCommunication() {
|
||||||
ports, err := serial.GetPortsList()
|
ports, err := serial.GetPortsList()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
Reference in New Issue
Block a user