Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Schema is the standard profile used for comparing schema. Schema = &Profile{} // Final is the standard profile for comparing data. Final = &Profile{ Concrete: true, } )
Functions ¶
Types ¶
type Edit ¶
type Edit struct {
// contains filtered or unexported fields
}
Edit represents a single operation within an edit-script.
type EditScript ¶
type EditScript struct {
// contains filtered or unexported fields
}
EditScript represents the series of differences between two CUE values. x and y must be either both list or struct.
func (*EditScript) LabelX ¶
func (es *EditScript) LabelX(i int) string
Label returns a string representation of the label.
func (*EditScript) LabelY ¶
func (es *EditScript) LabelY(i int) string
type Kind ¶
type Kind uint8
Kind identifies the kind of operation of an edit script.
const ( // Identity indicates that a value pair is identical in both list X and Y. Identity Kind = iota // UniqueX indicates that a value only exists in X and not Y. UniqueX // UniqueY indicates that a value only exists in Y and not X. UniqueY // Modified indicates that a value pair is a modification of each other. Modified )
Click to show internal directories.
Click to hide internal directories.