compare

package
v0.119.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Opts = cmp.Options{
	cmpopts.EquateApprox(0, 1e-9),
	cmp.Exporter(func(ty reflect.Type) bool {
		for _, prefix := range allow {
			if strings.HasPrefix(ty.PkgPath(), prefix) {
				return true
			}
		}
		return false
	}),
}

Functions

func Diff

func Diff[T any](a, b T, opts ...cmp.Option) string

func Equal

func Equal[T any](a, b T, opts ...cmp.Option) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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