From dcd32c255c4c4a7b31ebc2395a541704a753a092 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 14 Feb 2025 18:25:28 -0600 Subject: changes for new 'tree' package --- structs.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 5331219..d64389a 100644 --- a/structs.go +++ b/structs.go @@ -1,6 +1,8 @@ package main import ( + "sync" + "go.wit.com/toolkits/tree" ) @@ -13,8 +15,8 @@ type guiWidget struct { val map[string]int } -// It's probably a terrible idea to call this 'me' -var me config +var initOnce sync.Once // run initPlugin() only once +var me config // It's probably a terrible idea to call this 'me' type config struct { treeRoot *tree.Node // the base of the binary tree. it should have id == 0 -- cgit v1.2.3