jsondiff

package
v0.0.0-...-00f1f15 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2015 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package jsondiff provides utilites for creating RFC 6902 (JSON Patch) and RFC 7386 (JSON Merge Patch) patches.

It does this by wrapping github.com/evanphx/json-patch and github.com/mattbaird/jsonpatch ; there's very little actual code here; it is just a set of wrappers to provide a nicer interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a interface{}, b interface{}) bool

Test whether two objects have equivalent JSON structures.

func NewJSONMergePatch

func NewJSONMergePatch(a interface{}, b interface{}) (jsonpatch.JSONMergePatch, locale.Error)

Diff two objects, and produce an RFC 7386 JSON Merge Patch.

func NewJSONPatch

func NewJSONPatch(a interface{}, b interface{}) (jsonpatch.JSONPatch, locale.Error)

Diff two objects, and produce an RFC 6902 JSON Patch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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