Documentation
¶
Index ¶
- func CalcExp(exp *ddl.Exp, varGetter VarGetter) (*ddl.Exp, error)
- func CompareInterface(a interface{}, b interface{}) bool
- func ConvertVariableToExp(variable interface{}) (*ddl.Exp, error)
- func GetStructField(structVar interface{}, field string) (interface{}, error)
- func IsStructFieldExported(field string) bool
- func RunAndWatch(runWhat func(), fnOnChanged func(watcher *Watcher)) func()
- func RunReactively(runWhat func()) func()
- func SetStructField(structVar interface{}, field string, val interface{}) error
- func ThrottledRunReactively(runWhat func(), d time.Duration) func()
- func WatchRef[T any](ref *Ref[T], fnOnChanged func(newVal, oldVal T), immediate bool) func()
- func WatchRefs(refs []Watchable, fnOnChanged func(), immediate bool) func()
- type ActiveWatcherMgr
- type ComponentNode
- type Page
- type Ref
- type VarGetter
- type Watchable
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareInterface ¶
func CompareInterface(a interface{}, b interface{}) bool
func ConvertVariableToExp ¶
func GetStructField ¶
func IsStructFieldExported ¶
func RunAndWatch ¶
func RunAndWatch(runWhat func(), fnOnChanged func(watcher *Watcher)) func()
func RunReactively ¶
func RunReactively(runWhat func()) func()
func SetStructField ¶
func ThrottledRunReactively ¶
Types ¶
type ActiveWatcherMgr ¶
type ActiveWatcherMgr struct {
// contains filtered or unexported fields
}
func (*ActiveWatcherMgr) ActiveWatcher ¶
func (awm *ActiveWatcherMgr) ActiveWatcher() *Watcher
func (*ActiveWatcherMgr) Depth ¶
func (awm *ActiveWatcherMgr) Depth() int
func (*ActiveWatcherMgr) Pop ¶
func (awm *ActiveWatcherMgr) Pop() *Watcher
func (*ActiveWatcherMgr) Push ¶
func (awm *ActiveWatcherMgr) Push(watcher *Watcher)
type ComponentNode ¶
type Page ¶
type Ref ¶
type Ref[T any] struct { // contains filtered or unexported fields }
func (*Ref[T]) AddWatcher ¶
func (*Ref[T]) RemoveWatcher ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func (*Watcher) RunAndWatch ¶
func (w *Watcher) RunAndWatch()
Click to show internal directories.
Click to hide internal directories.