nocui/structs.go

29 lines
436 B
Go
Raw Permalink Normal View History

package main
import (
2025-02-14 18:11:19 -06:00
"sync"
"go.wit.com/toolkits/tree"
)
// stores the raw toolkit internals
type guiWidget struct {
Width int
Height int
c int
val map[string]int
}
2025-02-14 18:11:19 -06:00
var initOnce sync.Once // run initPlugin() only once
// It's probably a terrible idea to call this 'me'
var me config
type config struct {
treeRoot *tree.Node // the base of the binary tree. it should have id == 0
myTree *tree.TreeInfo
exit bool
}