jsondiff

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 2 Imported by: 0

README

JsonDiff

JsonDiff is a simple library that provide a easy-use way to diff two JSON strings.

Getting Started

Installing
$ go get github.com/shenhailuanma/jsondiff
Examples

Documentation

Index

Constants

View Source
const (
	JsonDiffTypeAdded   = "Added"
	JsonDiffTypeChanged = "Changed"
	JsonDiffTypeRemoved = "Removed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonDiffItem

type JsonDiffItem struct {
	Type string `json:"type"`
	Path string `json:"path"`
}

func JsonDiff

func JsonDiff(jsonA, jsonB string) ([]JsonDiffItem, error)

Jump to

Keyboard shortcuts

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