mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
17 lines
328 B
Go
17 lines
328 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 {
|
|
node := new(Node)
|
|
node.Item = NewItem()
|
|
node.Nodes = make(map[string]*Node)
|
|
return node
|
|
}
|