Versions in this module Expand all Collapse all v0 v0.5.1 Dec 4, 2026 v0.5.0 Dec 4, 2026 Changes in this version type Tree + func (t *Tree) Around(route string, before, after int) *Tree + func (t *Tree) CountsBy(key string) map[string]int + func (t *Tree) Filter(keep func(*Leaf) bool) *Tree + func (t *Tree) First(n int) *Tree + func (t *Tree) Last(n int) *Tree + func (t *Tree) Tagged(tags ...string) *Tree + func (t *Tree) Where(key string, values ...any) *Tree + func (t *Tree) Without(route string) *Tree v0.4.0 Dec 4, 2026 Changes in this version type Tree + func (t *Tree) Counts() map[string]int + func (t *Tree) TagCounts() map[string]int v0.3.0 Dec 4, 2026 Changes in this version + const TagTapeDecodeFailed + const TagTapeEncodeFailed + type Divergence struct + Extra []string + Missing []string + Tick int + type InputJson struct + Repeat int + Tick int + Value json.RawMessage + type StartJson struct + Tick int + Value json.RawMessage + type Take struct + First int + Last int + func (k *Take) Diverged(replay *Tree) *Divergence + func (k *Take) ReadInput(tick int, into any) (bool, error) + func (k *Take) ReadStart(into any) (bool, error) type Tree + func (t *Tree) Input(v any) + func (t *Tree) Start(v any) + func (t *Tree) TakeAt(tick int) *Take + func (t *Tree) Takes() []*Take type TreeJson + Inputs []InputJson + Starts []StartJson v0.2.0 Dec 4, 2026 Changes in this version type Tree + func (t *Tree) Inline() *Tree v0.1.0 Dec 3, 2026 Changes in this version + const TagDumpEncodeFailed + const TagDumpWriteFailed + const TagLoadDecodeFailed + type Leaf struct + Metadata map[string]any + Tag string + Tick int + func (l *Leaf) HasRoute(route string) bool + func (l *Leaf) Route() string + func (l *Leaf) StackFrames() []StackFrame + type LeafJson struct + Metadata map[string]any + Path int + Tag string + Tick int + type PathJson struct + Route string + StackFrames []StackFrame + type StackFrame struct + FuncName string + PackageName string + StructName string + type Tree struct + func FromJson(tj TreeJson) *Tree + func Load(r io.Reader) (*Tree, error) + func NewTree() *Tree + func (t *Tree) Branch(name string) *Tree + func (t *Tree) Dump(w io.Writer) error + func (t *Tree) During(first, last int) *Tree + func (t *Tree) Find(route string) []*Leaf + func (t *Tree) Fork() *Tree + func (t *Tree) Grow(tag string, metadata ...any) + func (t *Tree) HasRoute(route string) bool + func (t *Tree) Here() *Tree + func (t *Tree) Leaves() []*Leaf + func (t *Tree) Len() int + func (t *Tree) LogValue() slog.Value + func (t *Tree) Only(route string) *Tree + func (t *Tree) Routes() []string + func (t *Tree) String() string + func (t *Tree) Tick() int + func (t *Tree) ToJson() *TreeJson + type TreeJson struct + Leaves []LeafJson + Paths []PathJson