diff options
| author | Jeff Carr <[email protected]> | 2024-02-09 10:26:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-09 10:26:42 -0600 |
| commit | ec829f6e2be515b717d0ebd20b56623e44aff810 (patch) | |
| tree | 77551f22d4ffcdbdc54d10ee94e1c1230eec5693 /plugin.go | |
| parent | 12829e6e1c193bf7e98d9b13129d16c862995491 (diff) | |
binary tree is global
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
| -rw-r--r-- | plugin.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
