Documentation
¶
Overview ¶
Package track provides mutation-tracking primitives used by moduli.
End-users import this package only when they need to inspect or stream the history; ordinary option-usage requires nothing beyond the root package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory[T any] struct { // contains filtered or unexported fields }
Memory tracks all changes in memory and supports change hooks.
func (*Memory[T]) RegisterHook ¶
RegisterHook adds an observer callback that runs after every change.
Click to show internal directories.
Click to hide internal directories.