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 --- plugin.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin.go') diff --git a/plugin.go b/plugin.go index cfa1fb4..1498880 100644 --- a/plugin.go +++ b/plugin.go @@ -15,6 +15,11 @@ import ( "go.wit.com/widget" ) +// 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 { -- cgit v1.2.3