comparison

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BelongsTo

func BelongsTo(val interface{}, list []interface{}) bool

func DeepDiff

func DeepDiff(x interface{}, y interface{}) (bool, string)

func IsEqualTo

func IsEqualTo(rVal, eVal interface{}) (bool, error)

func IsPartOf

func IsPartOf(part interface{}, whole interface{}) (bool, string)

func IsZero

func IsZero(v reflect.Value) bool

func VariableInfo

func VariableInfo(label string, val interface{})

Types

type DiffReporter

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

func (*DiffReporter) GetDiffs

func (r *DiffReporter) GetDiffs() []string

func (*DiffReporter) HasDiffs

func (r *DiffReporter) HasDiffs() bool

func (*DiffReporter) PopStep

func (r *DiffReporter) PopStep()

func (*DiffReporter) PushStep

func (r *DiffReporter) PushStep(ps cmp.PathStep)

func (*DiffReporter) Report

func (r *DiffReporter) Report(rs cmp.Result)

func (*DiffReporter) String

func (r *DiffReporter) String() string

Jump to

Keyboard shortcuts

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