comparator

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a, b interface{}) string

Compare compares two interfaces and emits a unified diff as string

func CompareWithNames

func CompareWithNames(a, b interface{}, nameA, nameB string) string

CompareWithNames compares two interfaces and emits a unified diff as string

func MapBoolEquals

func MapBoolEquals(m1, m2 map[string]bool) bool

MapBoolEquals returns true if both maps are equal.

func MapStringEquals

func MapStringEquals(m1, m2 map[string]string) bool

MapStringEquals returns true if both maps are equal.

func MapStringEqualsIgnoreKeys

func MapStringEqualsIgnoreKeys(m1, m2 map[string]string, ignoreKeys []string) bool

MapStringEqualsIgnoreKeys returns true if both maps have the same values for the keys that are not present in the 'ignoreKeys'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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