From a78eadea024c2b283b45f1711aeda39d60deab22 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 18 Jan 2024 04:08:11 -0600 Subject: paths Signed-off-by: Jeff Carr --- structs.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index e4d7418..4ff96c7 100644 --- a/structs.go +++ b/structs.go @@ -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 -- cgit v1.2.3