package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jun 21, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
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
Pretty returns colorful string representation of the removal
String returns string representation of the removal
type Update struct {
Pair
}
Update is an update change
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.