package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Apr 5, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Package diff is a utility to create visual diffs for key/value changes.
Diff returns a visual representation of the changes.
Add is an addition change.
Pretty returns colorful string representation of the addition.
String returns string representation of the addition.
KVChange represent one change in key/value storage.
KVChanges is a collection of key/value changes.
Pair is a single key/value pair.
Key returns the key of the Pair.
Val returns the value of the Pair.
type Remove struct {
Pair
}
Remove is an removal change.
NewRemove creates Remove.
Pretty returns colorful string representation of the removal.
String returns string representation of the removal.
type Update struct {
Pair
}
Update is an update change.
NewUpdate creates update.
NewVal return the new value of the update change.
Pretty returns colorful string representation of the update.
String returns string representation of the update.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.