mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
17 lines
303 B
Go
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{},
|
|
}
|
|
}
|