comparator

package
v0.0.0-...-ec72bf4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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