cmp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJSONPatch

func CreateJSONPatch(before, after interface{}) ([]byte, error)

CreateJSONPatch returns a JSONPatch using the jsonpatch package.

func IsJSONEqual

func IsJSONEqual(first, second interface{}) (bool, error)

IsJSONEqual returns whether the given objects are equal when marshaled to JSON. This performs a rather simple equality check, and may sometimes return false negatives if JSON keys are marshaled in a different order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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