Documentation ¶
Index ¶
Constants ¶
View Source
const ( AsciiSame = " " AsciiAdded = "+" AsciiDeleted = "-" )
View Source
const ( DeltaDelete = 0 DeltaTextDiff = 2 DeltaMove = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsciiFormatter ¶
type AsciiFormatter struct { ShowArrayIndex bool // contains filtered or unexported fields }
func NewAsciiFormatter ¶
func NewAsciiFormatter(left interface{}) *AsciiFormatter
type DeltaFormatter ¶
type DeltaFormatter struct {
PrintIndent bool
}
func NewDeltaFormatter ¶
func NewDeltaFormatter() *DeltaFormatter
func (*DeltaFormatter) Format ¶
func (f *DeltaFormatter) Format(diff diff.Diff) (result string, err error)
func (*DeltaFormatter) FormatAsJson ¶
func (f *DeltaFormatter) FormatAsJson(diff diff.Diff) (json map[string]interface{}, err error)
Click to show internal directories.
Click to hide internal directories.