Versions in this module Expand all Collapse all v0 v0.6.0 Apr 14, 2022 v0.5.1 Apr 3, 2022 v0.5.0 Mar 18, 2022 v0.4.1 Mar 15, 2022 v0.4.0 Mar 14, 2022 v0.3.2 Mar 13, 2022 v0.3.1 Mar 12, 2022 v0.3.0 Mar 8, 2022 v0.2.0 Mar 8, 2022 Changes in this version type Node + Tree *Tree[T] + func (n *Node[T]) Append(u *Node[T]) + func (n *Node[T]) Morph(c *Node[T]) + func (n *Node[T]) WalkLevels(do func(n *Node[T])) type Tree + TypesMap map[string]int + func (s *Tree[T]) JSON() ([]byte, error) + func (s *Tree[T]) JSONL() ([]byte, error) + func (s *Tree[T]) Print() + func (s *Tree[T]) PrintLong() + func (s Tree[T]) Log() + func (s Tree[T]) LogLong() + func (s Tree[T]) String() string + func (s Tree[T]) StringLong() string v0.1.2 Mar 8, 2022 Changes in this version + const UNKNOWN type Node + Count int + P *Node[T] + T int + V T + func (n *Node[T]) WalkDeepPre(do func(n *Node[T])) + func (s *Node[T]) JSON() string + func (s *Node[T]) JSONL() string + func (s *Node[T]) PPrint() + func (s *Node[T]) Print() + func (s Node[T]) Log() + func (s Node[T]) LogL() + func (s Node[T]) MarshalJSON() ([]byte, error) + func (s Node[T]) String() string v0.1.1 Mar 8, 2022 v0.1.0 Mar 8, 2022 Changes in this version + type Node interface + Add func(t int) Node + Cut func() + Destroy func() + HasNodes func() bool + Init func(t int) error + IsEdge func() bool + IsEmpty func() bool + IsRoot func() bool + Node func() Node + Nodes func() []Node + SetType func(int) + Take func(from Node) + Type func() int + Value func() any + type QStack struct + Has bool + Len int + func (s *QStack) Items() []any + func (s *QStack) JSON() ([]byte, error) + func (s *QStack) JSONL() ([]byte, error) + func (s *QStack) Peek() any + func (s *QStack) Pop() any + func (s *QStack) Print() + func (s *QStack) PrintLong() + func (s *QStack) Push(it any) + func (s *QStack) Shift() any + func (s *QStack) Unshift(it any) + func (s QStack) Log() + func (s QStack) LogLong() + func (s QStack) MarshalJSON() ([]byte, error) + func (s QStack) String() string + func (s QStack) StringLong() string + type Stack interface + Peek func() any + Pop func() any + Push func(any) + type Tree interface + Init func(ts []string) error + Node func(t int) Node + Root func() Node + TypeString func(i int) string + Types func() []string + type Visits interface + Visit func(f func(item T) any, rv chan any) error + type VisitsAsync interface + Visit func(c context.Context, f func(item T) any, lim int, rv chan any) error