From ec829f6e2be515b717d0ebd20b56623e44aff810 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 9 Feb 2024 10:26:42 -0600 Subject: binary tree is global Signed-off-by: Jeff Carr --- structs.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'structs.go') 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) -- cgit v1.2.3