Versions in this module Expand all Collapse all v0 v0.1.2 Feb 4, 2020 Changes in this version + const CommentNode + const DoctypeNode + const DocumentNode + const ElementNode + const ErrorNode + const TextNode + var DOMEventStub = &DOMEvent + func ComputeHash(i interface{}) uint64 + func RegisterComponentType(tagName string, ct ComponentType) + type ComponentInst struct + Data interface{} + Type ComponentType + func New(ct ComponentType, props Props) (*ComponentInst, error) + type ComponentType interface + BuildVDOM func(data interface{}) (vdom *VGNode, css *VGNode, reterr error) + NewData func(props Props) (interface{}, error) + type ComponentTypeMap map[string]ComponentType + func RegisteredComponentTypes() ComponentTypeMap + type DOMEvent struct + func (e *DOMEvent) EventEnv() EventEnv + func (e *DOMEvent) JSEvent() interface{} + func (e *DOMEvent) JSEvent() js.Value + func (e *DOMEvent) JSEventThis() interface{} + func (e *DOMEvent) JSEventThis() js.Value + func (e *DOMEvent) PreventDefault() + func (e *DOMEvent) RequestRender() + type DOMEventHandler struct + Args []interface{} + Method reflect.Value + ReceiverAndMethodHash uint64 + type DataHasher interface + DataHash func() uint64 + type Env interface + RegisterComponentType func(tagName string, ct ComponentType) + Render func() error + type EventEnv interface + Lock func() + RLock func() + RUnlock func() + UnlockOnly func() + UnlockRender func() + type JSEnv struct + DebugWriter io.Writer + MountParent string + func GetJSEnv() *JSEnv + func NewJSEnv(mountParent string, rootInst *ComponentInst, components ComponentTypeMap) *JSEnv + func (e *JSEnv) EventEnv() EventEnv + func (e *JSEnv) EventWait() (ok bool) + func (e *JSEnv) EventWait() bool + func (e *JSEnv) RegisterComponentType(tagName string, ct ComponentType) + func (e *JSEnv) Render() (reterr error) + func (e *JSEnv) Render() error + type ParserGo struct + ComponentType string + DataType string + OutDir string + OutFile string + PackageName string + func (p *ParserGo) Parse(r io.Reader) error + type ParserGoPkg struct + func NewParserGoPkg(pkgPath string, opts *ParserGoPkgOpts) *ParserGoPkg + func (p *ParserGoPkg) Run() error + type ParserGoPkgOpts struct + SkipGoMod bool + SkipMainGo bool + SkipRegisterComponentTypes bool + type Props map[string]interface + func (p Props) Clone() Props + func (p Props) Merge(p2 Props) Props + func (p Props) OrderedKeys() []string + type StaticHTMLEnv struct + func NewStaticHTMLEnv(out io.Writer, rootInst *ComponentInst, components ComponentTypeMap) *StaticHTMLEnv + func (e *StaticHTMLEnv) RegisterComponentType(tagName string, ct ComponentType) + func (e *StaticHTMLEnv) Render() error + type VGAtom uint32 + type VGAttribute struct + Key string + Namespace string + Val string + type VGNode struct + Attr []VGAttribute + DOMEventHandlers map[string]DOMEventHandler + Data string + DataAtom VGAtom + FirstChild *VGNode + InnerHTML string + LastChild *VGNode + Namespace string + NextSibling *VGNode + Parent *VGNode + PrevSibling *VGNode + Props Props + Type VGNodeType + func (n *VGNode) AppendChild(c *VGNode) + func (n *VGNode) InsertBefore(newChild, oldChild *VGNode) + func (n *VGNode) RemoveChild(c *VGNode) + func (n *VGNode) SetDOMEventHandler(name string, h DOMEventHandler) + func (vgn *VGNode) Walk(f func(*VGNode) error) error + type VGNodeType uint32