1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package main import ( "go.wit.com/gui/widget" ) // this is specific to the nocui toolkit func initWidget(n *node) *guiWidget { var w *guiWidget w = new(guiWidget) if n.WidgetType == widget.Root { n.WidgetId = 0 me.rootNode = n return w } return w }