Reorganized repository
This commit is contained in:
@@ -2,7 +2,7 @@ include $(GOROOT)/src/Make.inc
|
||||
|
||||
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
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package main
|
||||
package serial
|
||||
|
||||
import "bug.st/go-serial/serial"
|
||||
import "go.bug.st/serial"
|
||||
import "fmt"
|
||||
import "log"
|
||||
|
||||
func main() {
|
||||
func ExampleCommunication() {
|
||||
ports, err := serial.GetPortsList()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
Reference in New Issue
Block a user