diff

package
v1.0.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL