Documentation
¶
Overview ¶
Diff related utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
Diff represents a collection of chunks that describe the difference between two texts. Each chunk describes a series of added, deleted, and equal lines. The primary purpose of Diff is to display text differences in a readable format, with added lines prefixed with '+' and deleted lines prefixed with '-'. ANSI colors are used unless color.NoColor is set.
func DiffAsYaml ¶
DiffAsYaml converts both interfaces to yaml and diffs them.
func (Diff) HasChanges ¶
HasChanges return true when the chunks contains changes.
Click to show internal directories.
Click to hide internal directories.