summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-14 18:11:19 -0600
committerJeff Carr <[email protected]>2025-02-14 18:11:19 -0600
commita83ca26ac3380be410cd8aaceef7b6a2c7d2701a (patch)
tree28e5cf62e8cd216b50e1d1bbdc3e3b758b0f67cb /structs.go
parentc4e48c6403936c7f5d1f60d590fc3a91fecdc83d (diff)
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index 5331219..a2f03f1 100644
--- a/structs.go
+++ b/structs.go
@@ -1,6 +1,8 @@
package main
import (
+ "sync"
+
"go.wit.com/toolkits/tree"
)
@@ -13,6 +15,8 @@ type guiWidget struct {
val map[string]int
}
+var initOnce sync.Once // run initPlugin() only once
+
// It's probably a terrible idea to call this 'me'
var me config