Documentation ¶
Index ¶
Constants ¶
View Source
const VersionString = "csvdiff v1.0.0"
VersionString to display on --version call
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
Config is to store all command line Flags.
func (*Config) Formatter ¶ added in v1.0.0
Formatter instantiates a new formatted based on config.Format
func (*Config) GetPrimaryKeys ¶
GetPrimaryKeys is to return the --primary-key flags as digest.Positions array.
func (*Config) GetValueColumns ¶
GetValueColumns is to return the --value-columns flags as digest.Positions array.
type Formatter ¶ added in v1.0.0
type Formatter interface {
Format(digest.Difference, io.Writer)
}
Formatter defines the interface through which differences can be formatted and displayed
type JSONFormatter ¶ added in v1.0.0
type JSONFormatter struct{}
JSONFormatter formats diff to as a JSON Object
func (*JSONFormatter) Format ¶ added in v1.0.0
func (f *JSONFormatter) Format(diff digest.Difference, w io.Writer)
Format prints the diff as a JSON
type RowMarkFormatter ¶ added in v1.0.0
type RowMarkFormatter struct{}
RowMarkFormatter formats diff by marking each row as ADDED/MODIFIED. It mutates the row and adds as a new column.
func (*RowMarkFormatter) Format ¶ added in v1.0.0
func (f *RowMarkFormatter) Format(diff digest.Difference, w io.Writer)
Format prints the diff to os.Stdout
Click to show internal directories.
Click to hide internal directories.