diff options
| author | Jeff Carr <[email protected]> | 2025-02-14 18:20:30 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-14 18:20:30 -0600 |
| commit | 9e177d2636572a6d6a41b50043316e2f6918e6ab (patch) | |
| tree | 7c60e74b3c181f2ac0fef46a9abcb8ddd90bfab4 /structs.go | |
| parent | 2b8673e04c885dcee68a9c4912a5d6150a615505 (diff) | |
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |
