diff options
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -13,12 +13,12 @@ package tree import ( // "go.wit.com/log" - "go.wit.com/lib/widget" + "go.wit.com/widget" ) // var me *TreeInfo -type TreeInfo struct { +type TreeInfo struct { // this is the channel we send user events like // mouse clicks or keyboard events back to the program callback chan widget.Action @@ -26,21 +26,21 @@ type TreeInfo struct { // this is the channel we get requests to make widgets pluginChan chan widget.Action - treeRoot *Node - NodeI interface {} - ActionFromChannel func (widget.Action) () - PluginName string + treeRoot *Node + NodeI interface{} + ActionFromChannel func(widget.Action) + PluginName string } type Node struct { - Parent *Node + Parent *Node children []*Node - WidgetId int // widget ID - WidgetType widget.WidgetType - ParentId int // parent ID + WidgetId int // widget ID + WidgetType widget.WidgetType + ParentId int // parent ID - State widget.State + State widget.State Strings map[string]int |
