summaryrefslogtreecommitdiff
path: root/gocui/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-17 23:39:03 -0600
committerJeff Carr <[email protected]>2024-01-17 23:39:03 -0600
commita0baba0821441d9cf38f0b33fe12fb96925c6236 (patch)
tree2aece2a890c66c36b08524e117753817078ee58c /gocui/main.go
parentbee272651ad38453aef27f098513f7be652c39bf (diff)
new paths
Signed-off-by: Jeff Carr <[email protected]>
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)