summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-09 10:26:42 -0600
committerJeff Carr <[email protected]>2024-02-09 10:26:42 -0600
commitec829f6e2be515b717d0ebd20b56623e44aff810 (patch)
tree77551f22d4ffcdbdc54d10ee94e1c1230eec5693 /structs.go
parent12829e6e1c193bf7e98d9b13129d16c862995491 (diff)
binary tree is global
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/structs.go b/structs.go
index 367f21a..17c10bc 100644
--- a/structs.go
+++ b/structs.go
@@ -10,6 +10,10 @@ import (
"go.wit.com/widget"
)
+// this is the root node of the binary tree
+// There is only one of these per application
+var treeRoot *Node
+
type TreeInfo struct {
PluginName string
@@ -20,7 +24,6 @@ type TreeInfo struct {
// this is the channel we get requests to make widgets
pluginChan chan widget.Action
- treeRoot *Node
// NodeI interface{}
// ActionFromChannel func(widget.Action)