From 95b019ad2215c1192e3fd05608427e38ddadf092 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 18 Jan 2024 04:08:32 -0600 Subject: [PATCH] paths Signed-off-by: Jeff Carr --- action.go | 6 +++--- args.go | 6 +++--- go.mod | 2 +- stdin.go | 10 +++++----- structs.go | 4 ++-- tree.go | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/action.go b/action.go index ea1a6fa..056c510 100644 --- a/action.go +++ b/action.go @@ -8,7 +8,7 @@ package main import ( "go.wit.com/log" - "go.wit.com/lib/widget" + "go.wit.com/widget" // "go.wit.com/gui/toolkits/tree" ) @@ -16,7 +16,7 @@ func doAction(a widget.Action) { log.Log(INFO, "doAction() START a.ActionType =", a.ActionType) log.Log(INFO, "doAction() START a.ProgName =", a.ProgName) - if (a.ActionType == widget.ToolkitInit) { + if a.ActionType == widget.ToolkitInit { return } @@ -85,5 +85,5 @@ func doAction(a widget.Action) { default: log.Log(ERROR, "doAction() Unknown =", a.ActionType, a.WidgetType) } - log.Log(INFO, "doAction() END =", a.ActionType, a.WidgetType) + log.Log(INFO, "doAction() END =", a.ActionType, a.WidgetType) } diff --git a/args.go b/args.go index 4b6b38e..c00c0e3 100644 --- a/args.go +++ b/args.go @@ -4,7 +4,7 @@ package main this enables command line options from other packages like 'gui' and 'log' */ -import ( +import ( log "go.wit.com/log" ) @@ -20,10 +20,10 @@ func init() { full := "toolkit/nocui" short := "nocui" - NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff") + NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff") INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff") - WARN = log.NewFlag("WARN", true, full, short, "bad things") + WARN = log.NewFlag("WARN", true, full, short, "bad things") SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff") ERROR = log.NewFlag("ERROR", false, full, short, "toolkit errors") diff --git a/go.mod b/go.mod index e802e10..d39d33b 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module go.wit.com/gui/toolkits/nocui +module go.wit.com/toolkits/nocui go 1.21.4 diff --git a/stdin.go b/stdin.go index 9b9f794..5695546 100644 --- a/stdin.go +++ b/stdin.go @@ -1,15 +1,15 @@ package main import ( - "os" - "fmt" "bufio" + "fmt" + "os" "runtime/debug" - "strings" "strconv" + "strings" "go.wit.com/log" - "go.wit.com/lib/widget" + "go.wit.com/widget" ) func simpleStdin() { @@ -51,7 +51,7 @@ func simpleStdin() { i, _ := strconv.Atoi(s) log.Log(NOW, "got input:", i) n := me.treeRoot.FindWidgetId(i) - if (n != nil) { + if n != nil { n.DumpWidget("found node") for i, s := range n.State.Strings { log.Warn("n.State.Strings =", i, s) diff --git a/structs.go b/structs.go index 8d01ef0..cb24bde 100644 --- a/structs.go +++ b/structs.go @@ -9,7 +9,7 @@ type guiWidget struct { Width int Height int - c int + c int val map[string]int } @@ -18,5 +18,5 @@ var me config type config struct { treeRoot *tree.Node // the base of the binary tree. it should have id == 0 - myTree *tree.TreeInfo + myTree *tree.TreeInfo } diff --git a/tree.go b/tree.go index 6ba353e..57f283a 100644 --- a/tree.go +++ b/tree.go @@ -5,7 +5,7 @@ package main */ import ( - "go.wit.com/lib/widget" + "go.wit.com/widget" ) // Other goroutines must use this to access the GUI