compare

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(t *tablewriter.Table, key string, A interface{}, B interface{})

func Value

func Value(a, b interface{}) error

Types

type Comparison

type Comparison struct {
	// contains filtered or unexported fields
}

Comparison records the state of a comparison

func JSON

func JSON(a []byte, b []byte, colorize bool) (Comparison, error)

JSON compares two json strings, processes them to handle wild cards, and returns the prettified JSON string

func (Comparison) Error

func (c Comparison) Error() string

Error returns the formatter error string with context and error

func (Comparison) ShouldFailStep

func (c Comparison) ShouldFailStep() bool

ShouldFailStep satisfies behavior of whether or not a step should fail

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL