// CreateTransporterNode will turn this node into a transporter.Node.
// will recurse down the tree and transform each child
CreateTransporterNode will turn this node into a transporter.Node.
will recurse down the tree and transform each child
// CreateTransporterNode will turn this node into a transporter . Node . // will recurse down the tree and transform each child
func (n *Node) CreateTransporterNode() *transporter.Node {
	self := transporter.NewNode(n.Name, n.Type, n.Extra)
	for _, child := range n.Children {
		self.Add(child.CreateTransporterNode())
	}
	return self
}
func ( n * Node ) CreateTransporterNode ( ) * transporter . Node { self := transporter . NewNode ( n . Name , n . Type , n . Extra ) for _ , child := range n . Children { self . Add ( child . CreateTransporterNode ( ) ) } return self }
CreateTransporterNode will turn this node into a transporter.Node.
CreateTransporterNode will turn this node into a transporter . Node .