Documentation ¶
Index ¶
- func SortAlpha[V any](n1, n2 *Node[V]) compare.Order
- type Node
- func (n *Node[V]) Create(key string) (*Node[V], error)
- func (n *Node[V]) Get(key string) (*Node[V], bool)
- func (n *Node[V]) GetOrCreate(ss []string) *Node[V]
- func (n *Node[V]) GetPath(ss []string) (*Node[V], bool)
- func (n *Node[V]) MustGet(key string) *Node[V]
- func (n *Node[V]) PostOrder(f func(*Node[V]))
- func (n *Node[V]) Sort(f compare.Compare[*Node[V]])
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
func (*Node[V]) GetOrCreate ¶
GetOrCreate creates or returns the node at the given key.
Click to show internal directories.
Click to hide internal directories.