Versions in this module Expand all Collapse all v0 v0.1.0 Jul 20, 2026 Changes in this version + type Batch struct + func (b *Batch[K, V]) Delete(k K) + func (b *Batch[K, V]) SetFormula(k K, deps []K, fn func(in Inputs[K, V]) (V, error)) error + func (b *Batch[K, V]) SetValue(k K, v V) + type CycleError struct + func (e *CycleError[K]) Error() string + func (e *CycleError[K]) Path() []K + type EvalError struct + Cause K + Err error + Key K + Panic bool + PanicValue any + func (e *EvalError[K]) Error() string + func (e *EvalError[K]) Unwrap() error + type Graph struct + func New[K comparable, V any]() *Graph[K, V] + func (g *Graph[K, V]) Batch(fn func(b *Batch[K, V]) error) error + func (g *Graph[K, V]) Clone() *Graph[K, V] + func (g *Graph[K, V]) Delete(k K) + func (g *Graph[K, V]) Dependents(k K) []K + func (g *Graph[K, V]) Get(k K) (V, error) + func (g *Graph[K, V]) Has(k K) bool + func (g *Graph[K, V]) Keys() []K + func (g *Graph[K, V]) Len() int + func (g *Graph[K, V]) OnCompute(fn func(k K, err error)) + func (g *Graph[K, V]) Precedents(k K) []K + func (g *Graph[K, V]) Recalc() error + func (g *Graph[K, V]) RecalcFrom(keys ...K) error + func (g *Graph[K, V]) SetFormula(k K, deps []K, fn func(in Inputs[K, V]) (V, error)) error + func (g *Graph[K, V]) SetValue(k K, v V) + func (g *Graph[K, V]) Stale() []K + func (g *Graph[K, V]) TopoOrder() ([]K, error) + type Inputs struct + func (in Inputs[K, V]) Get(k K) (V, error) + func (in Inputs[K, V]) Keys() []K + func (in Inputs[K, V]) Len() int + func (in Inputs[K, V]) MustGet(k K) V + type UndeclaredError struct + Key K + func (e *UndeclaredError[K]) Error() string + type UnresolvedError struct + Key K + Missing K + func (e *UnresolvedError[K]) Error() string