move under setter and change to string

pull/191/head
Ori Pekelman 6 years ago
parent 36893a6697
commit f9524f55ba

@ -105,6 +105,11 @@ func (n *TreeNode) SetChildren(childNodes []*TreeNode) *TreeNode {
return n
}
// GetText returns this node's text.
func (n *TreeNode) GetText() string {
return n.text
}
// GetChildren returns this node's children.
func (n *TreeNode) GetChildren() []*TreeNode {
return n.children

Loading…
Cancel
Save