1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package gui import ( "git.wit.org/wit/gui/toolkit" ) func (n *Node) NewLabel(text string) *Node { newNode := n.New(text, toolkit.Label, nil) var a toolkit.Action a.Type = toolkit.Add newaction(&a, newNode, n) return newNode }