Documentation ¶
Index ¶
Constants ¶
View Source
const ( Deletion ActionType = 0 Insertion = 1 Move = 2 Update = 3 )
Variables ¶
This section is empty.
Functions ¶
func PerformDiff ¶
func PerformDiff(a, b *Element, dNode DomNode, m TreeModifier)
PerformDiff calculates and performs operations on the DOM tree dNode to transform an old tree representation (b) to the new tree (a)
Types ¶
type Action ¶
type Action struct { Type ActionType Index int From int Element DomNode Content Node }
type ActionType ¶
type ActionType int
type Attributes ¶
type Attributes map[string]interface{}
type Element ¶
type Element struct { Tag string Attrs Attributes Children []Node EvtHandlers map[string]EvtHandler // contains filtered or unexported fields }
func NewElement ¶
func NewElement(tag string, attrs Attributes, children []Node) *Element
type EvtHandler ¶
type EvtHandler func(Event)
Click to show internal directories.
Click to hide internal directories.