Versions in this module Expand all Collapse all v5 v5.0.1 Jul 28, 2026 Changes in this version + func ApplySnapshot(parseSnapshot Snapshot) error + func ImportSnapshot(parseSnapshot Snapshot) error + func MarshalSnapshotJSON(parseSnapshot Snapshot) ([]byte, error) + func RegisterSnapshotMigration(parseFromVersion int, parseMigration SnapshotMigration) error + func RestorePersistentSnapshot(parseCtx context.Context, parseKey string, ...) (bool, error) + func RestoreSnapshot(parseKey string, parseArea StorageArea) (bool, error) + func SavePersistentSnapshot(parseCtx context.Context, parseKey string, parseSnapshot Snapshot, ...) error + func SaveSnapshot(parseKey string, parseSnapshot Snapshot, parseArea StorageArea) error + type Atom struct + func UseAtomKey[T any](parseKey AtomKey[T]) Atom[T] + func UseAtom[T any](parseId string, parseInitialValue T) Atom[T] + func (parseA Atom[T]) Get() T + func (parseA Atom[T]) ReactiveRegionSourceIDs() []string + func (parseA Atom[T]) Set(parseValue T) + func (parseA Atom[T]) Text(render func(T) string) *Element + func (parseA Atom[T]) Update(parseFn func(T) T) + type AtomKey struct + func NewAtomKey[T any](parseID string, parseInitial T) AtomKey[T] + func (parseKey AtomKey[T]) Default() T + func (parseKey AtomKey[T]) Global() GlobalAtom[T] + func (parseKey AtomKey[T]) ID() string + type Computed struct + func UseComputed[T any](parseCompute func() T, parseDeps ...any) Computed[T] + func (parseC Computed[T]) Get() T + type ComputedSignal struct + func NewAutoComputed[T any](parseCompute func() T) ComputedSignal[T] + func NewComputed[T any](parseCompute func() T, parseSources ...reactiveSource) ComputedSignal[T] + func (parseC ComputedSignal[T]) Get() T + func (parseC ComputedSignal[T]) Peek() T + func (parseC ComputedSignal[T]) ReactiveRegionSourceIDs() []string + func (parseC ComputedSignal[T]) Text(render func(T) string) *Element + func (parseC ComputedSignal[T]) TextValue() *Element + type Derived struct + func Select[T any, U any](parseId string, parseSource selectorSource[T], parseProject func(T) U) Derived[U] + func UseDerived[T any](parseId string, parseCompute func() T, parseDeps ...string) Derived[T] + func UseSelector[T any, U any](parseId string, parseSource selectorSource[T], parseProject func(T) U) Derived[U] + func (parseD Derived[T]) Get() T + func (parseD Derived[T]) ReactiveRegionSourceIDs() []string + func (parseD Derived[T]) Text(render func(T) string) *Element + type Element = runtime.Element + type GlobalAtom struct + func NewGlobalAtom[T any](parseID string, parseDefault T) GlobalAtom[T] + func (parseAtom GlobalAtom[T]) Get() T + func (parseAtom GlobalAtom[T]) ID() string + func (parseAtom GlobalAtom[T]) Set(parseValue T) + func (parseAtom GlobalAtom[T]) Update(parseFn func(T) T) + type PersistentSnapshotOptions struct + DatabaseName string + DeleteOnCorruption bool + FallbackBackend string + FallbackResolver func() (interop.Storage, error) + StoreName string + StoreResolver func(context.Context) (interop.PersistentStore, error) + type Signal struct + func NewKeyedSignal[T any](parseID string, parseInitial T) Signal[T] + func NewSignal[T any](parseInitial T) Signal[T] + func (parseS Signal[T]) Get() T + func (parseS Signal[T]) ID() string + func (parseS Signal[T]) Peek() T + func (parseS Signal[T]) ReactiveRegionSourceIDs() []string + func (parseS Signal[T]) Set(parseValue T) + func (parseS Signal[T]) Text(render func(T) string) *Element + func (parseS Signal[T]) TextValue() *Element + func (parseS Signal[T]) Update(parseFn func(T) T) + type Snapshot map[string]any + func ExportSnapshot() (Snapshot, error) + func GetSnapshot() (Snapshot, error) + func LoadPersistentSnapshot(parseCtx context.Context, parseKey string, ...) (Snapshot, bool, error) + func LoadSnapshot(parseKey string, parseArea StorageArea) (Snapshot, bool, error) + func UnmarshalSnapshotJSON(parseData []byte) (Snapshot, error) + func (parseS Snapshot) Select(parseKeys ...string) Snapshot + type SnapshotMigration func(Snapshot) (Snapshot, error) + type StorageArea string + const LocalStorage + const SessionStorage Other modules containing this package github.com/monstercameron/GoWebComponents github.com/monstercameron/GoWebComponents/v4