Versions in this module Expand all Collapse all v1 v1.0.0 Sep 26, 2022 Changes in this version + const CommentNode + const DoctypeNode + const DocumentNode + const ElementNode + const ErrorNode + const TextNode + func MakeCompKeyID(t time.Time, data uint32) uint64 + func MakeCompKeyIDNowRand() uint64 + func MakeCompKeyIDTimeHash(t time.Time, b []byte) uint64 + type AttrMap map[string]interface + func (m AttrMap) AttributeList() (ret []VGAttribute) + type BeforeBuilder interface + BeforeBuild func() + type BuildEnv struct + func NewBuildEnv(eventEnv ...EventEnv) (*BuildEnv, error) + func (e *BuildEnv) CachedComponent(compKey CompKey) Builder + func (e *BuildEnv) RunBuild(builder Builder) *BuildResults + func (e *BuildEnv) SetWireFunc(f func(component Builder)) + func (e *BuildEnv) UseComponent(compKey CompKey, component Builder) + func (e *BuildEnv) WireComponent(component Builder) + type BuildIn struct + BuildEnv *BuildEnv + PositionHashList []uint64 + func (bi *BuildIn) CurrentPositionHash() uint64 + type BuildOut struct + CSS []*VGNode + Components []Builder + JS []*VGNode + Out []*VGNode + func (b *BuildOut) AppendCSS(nlist ...*VGNode) + func (b *BuildOut) AppendJS(nlist ...*VGNode) + type BuildResults struct + Out *BuildOut + func (r *BuildResults) ResultFor(component interface{}) *BuildOut + type Builder interface + Build func(in *BuildIn) (out *BuildOut) + func NewBuilderFunc(f func(in *BuildIn) (out *BuildOut)) Builder + type ChangeCounter int + func (c *ChangeCounter) Changed() + func (c *ChangeCounter) ModCheck(mt *ModTracker, oldData interface{}) (isModified bool, newData interface{}) + type CompKey struct + ID uint64 + IterKey interface{} + func MakeCompKey(id uint64, iterKey interface{}) CompKey + type ComputeCtx interface + EventEnv func() EventEnv + type DOMEvent interface + EventEnv func() EventEnv + EventSummary func() map[string]interface{} + JSEvent func() js.Value + JSEventCurrentTarget func() js.Value + JSEventTarget func() js.Value + PreventDefault func() + Prop func(keys ...string) interface{} + PropBool func(keys ...string) bool + PropFloat64 func(keys ...string) float64 + PropString func(keys ...string) string + StopPropagation func() + func NewDOMEvent(eventEnv EventEnv, eventSummary map[string]interface{}) DOMEvent + type DOMEventHandlerSpec struct + Capture bool + EventType string + Func func(DOMEvent) + Passive bool + type DestroyCtx interface + EventEnv func() EventEnv + type EventEnv interface + Lock func() + RLock func() + RUnlock func() + UnlockOnly func() + UnlockRender func() + type EventEnvImpl struct + func NewEventEnvImpl(rwmu *sync.RWMutex, requestRenderCH chan bool) *EventEnvImpl + func (ee *EventEnvImpl) Lock() + func (ee *EventEnvImpl) RLock() + func (ee *EventEnvImpl) RUnlock() + func (ee *EventEnvImpl) UnlockOnly() + func (ee *EventEnvImpl) UnlockRender() + type HTML string + func (h HTML) HTML() string + type HTMLer interface + HTML func() string + type InitCtx interface + EventEnv func() EventEnv + type JSValueFunc func(js.Value) + func (f JSValueFunc) JSValueHandle(v js.Value) + type JSValueHandler interface + JSValueHandle func(js.Value) + type ModChecker interface + ModCheck func(mt *ModTracker, oldData interface{}) (isModified bool, newData interface{}) + type ModTracker struct + func NewModTracker() *ModTracker + func (mt *ModTracker) ModCheckAll(values ...interface{}) (ret bool) + func (mt *ModTracker) TrackNext() + type RenderedCtx interface + EventEnv func() EventEnv + First func() bool + type VGAttribute struct + Key string + Namespace string + Val string + type VGAttributeLister interface + AttributeList func() []VGAttribute + type VGAttributeListerFunc func() []VGAttribute + func (f VGAttributeListerFunc) AttributeList() []VGAttribute + type VGNode struct + Attr []VGAttribute + Component interface{} + DOMEventHandlerSpecList []DOMEventHandlerSpec + Data string + FirstChild *VGNode + InnerHTML *string + JSCreateHandler JSValueHandler + JSPopulateHandler JSValueHandler + LastChild *VGNode + Namespace string + NextSibling *VGNode + Parent *VGNode + PrevSibling *VGNode + Prop []VGProperty + Type VGNodeType + func (n *VGNode) AddAttrInterface(key string, val interface{}) + func (n *VGNode) AddAttrList(lister VGAttributeLister) + func (n *VGNode) AppendChild(c *VGNode) + func (n *VGNode) InsertBefore(newChild, oldChild *VGNode) + func (n *VGNode) IsComponent() bool + func (n *VGNode) IsTemplate() bool + func (n *VGNode) RemoveChild(c *VGNode) + func (n *VGNode) SetInnerHTML(val interface{}) + func (n *VGNode) Walk(f func(*VGNode) error) error + type VGNodeType uint32 + type VGProperty struct + JSONVal []byte + Key string