summaryrefslogtreecommitdiff
path: root/gocui/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'gocui/main.go')
-rw-r--r--gocui/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/gocui/main.go b/gocui/main.go
index 72bad7c..37eed29 100644
--- a/gocui/main.go
+++ b/gocui/main.go
@@ -7,8 +7,8 @@ package main
import (
"os"
+ "go.wit.com/lib/widget"
"go.wit.com/log"
- "go.wit.com/gui/widget"
)
// sets defaults and establishes communication
@@ -38,9 +38,9 @@ func catchActionChannel() {
log.Log(INFO, "catchActionChannel() START")
for {
log.Log(INFO, "catchActionChannel() infinite for() loop restarted select on channel")
- select {
+ select {
case a := <-pluginChan:
- if (me.baseGui == nil) {
+ if me.baseGui == nil {
// something went wrong initializing the gocui
log.Log(ERROR, "ERROR: console did not initialize")
continue
@@ -84,7 +84,7 @@ func main() {
var err error
log.Log(INFO, "main() start Init()")
- outf, err = os.OpenFile("/tmp/witgui.log", os.O_RDWR | os.O_CREATE | os.O_APPEND, 0666)
+ outf, err = os.OpenFile("/tmp/witgui.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
if err != nil {
log.Error(err, "error opening file: %v")
os.Exit(0)