summaryrefslogtreecommitdiff
path: root/plugin.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 /plugin.go
parent12829e6e1c193bf7e98d9b13129d16c862995491 (diff)
binary tree is global
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin.go b/plugin.go
index cfa1fb4..1498880 100644
--- a/plugin.go
+++ b/plugin.go
@@ -16,6 +16,11 @@ import (
)
// searches the binary tree for a WidgetId
+func FindWidgetId(id int) *Node {
+ return treeRoot.FindWidgetId(id)
+}
+
+// searches the binary tree for a WidgetId
func (n *Node) FindWidgetId(id int) *Node {
if n == nil {
return nil