26 lines
394 B
Go
26 lines
394 B
Go
package main
|
|
|
|
import (
|
|
"annalist/api/modem"
|
|
"log"
|
|
)
|
|
|
|
func main() {
|
|
log.Println("CGSG forever!!!")
|
|
if err := mainE(); err != nil {
|
|
log.Println("MAIN finished with error:", err.Error())
|
|
}
|
|
log.Println("END")
|
|
}
|
|
|
|
func mainE() error {
|
|
m := modem.New()
|
|
return m.Init()
|
|
// ports, err := serial.GetPortsList()
|
|
// if err != nil {
|
|
// return err
|
|
// }
|
|
// log.Println(ports)
|
|
// return nil
|
|
}
|