Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONPrinter ¶
type JSONPrinter struct {
// contains filtered or unexported fields
}
JSONPrinter prints diffs as JSON, making it easily parseable for tools like jq or jiq.
func NewJSONPrinter ¶
func NewJSONPrinter(w io.Writer, unchanged, updated, created, deleted bool) *JSONPrinter
NewJSONPrinter creates a new JSONPrinter.
type StdPrinter ¶
type StdPrinter struct {
// contains filtered or unexported fields
}
StdPrinter uses a textual description for diffs.
func NewStdPrinter ¶
func NewStdPrinter(w io.WriteCloser, unchanged, updated, created, deleted bool) *StdPrinter
NewStdPrinter creates a new StdPrinter.
Click to show internal directories.
Click to hide internal directories.