summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-14 18:20:30 -0600
committerJeff Carr <[email protected]>2025-02-14 18:20:30 -0600
commit9e177d2636572a6d6a41b50043316e2f6918e6ab (patch)
tree7c60e74b3c181f2ac0fef46a9abcb8ddd90bfab4 /structs.go
parent2b8673e04c885dcee68a9c4912a5d6150a615505 (diff)
fixed for new 'tree' packagev0.21.17v0.21.16v0.21.15v0.21.14v0.21.13
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/structs.go b/structs.go
index 5416913..f51cfb8 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 toolkitConfig
+var initOnce sync.Once // run initPlugin() only once
+var me toolkitConfig // It's probably a terrible idea to call this 'me'
type toolkitConfig struct {
treeRoot *tree.Node // the base of the binary tree. it should have id == 0