Documentation
¶
Overview ¶
Package diff contains primitives for diff-ing objects and strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Objects ¶
Objects renders the left and right objects passed to it as YAML and returns the diff. A zero-length slice is returned when there are no diffs.
Types ¶
type Options ¶
type Options struct { LeftName string // name of left side RightName string // name of right side Context int // number of context lines in the diff, defaults to 3 Colorize bool // added colors to the diff }
Options are options for the diff. The zero-value is valid. Use a negative number for the context if you really want 0 context lines.
Source Files
¶
- diff.go
Click to show internal directories.
Click to hide internal directories.