contentserver/content/node.go
2016-03-07 16:30:47 +01:00

17 lines
303 B
Go

package content
// Node a node in a content tree
type Node struct {
Item *Item `json:"item"`
Nodes map[string]*Node `json:"nodes"`
Index []string `json:"index"`
}
// NewNode constructor
func NewNode() *Node {
return &Node{
Item: NewItem(),
Nodes: map[string]*Node{},
}
}