diff options
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 |
