Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModChange leaf's value is being updated ModChange = ModificationType("Change") // ModDelete node is being removed ModDelete = ModificationType("Delete") // ModAdd leaf value is being added ModAdd = ModificationType("Add") )
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(node dom.ContainerBuilder, mods []Modification)
func Diff ¶
func Diff(left, right dom.Container) *[]Modification
Diff computes semantic difference between 2 Containers
Types ¶
type Modification ¶
type Modification struct { Type ModificationType Path string Value interface{} OldValue interface{} }
func (*Modification) String ¶
func (m *Modification) String() string
type ModificationType ¶
type ModificationType string
Click to show internal directories.
Click to hide internal directories.