feat: Add Node#RemoveChild

This commit is contained in:
ptrcnull 2022-07-07 23:57:16 +02:00
parent 3a2cfbb8be
commit 947b928a5d

View file

@ -109,6 +109,11 @@ func (n *Node) Children() []*Node {
return res
}
func (n *Node) RemoveChild(other *Node) {
// thanks go stdlib!
n.Node.RemoveChild(other.Node)
}
func (n *Node) Traverse(cb func(n *Node)) {
var f func(*Node)
f = func(n *Node) {