diff

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompJsons

func CompJsons(left, right []byte) (map[string]Diff, error)

CompJsons compares two JSON strings, and returns a map of paths to changed fields to a tuple of the old and new value of that field

Types

type Changelog

type Changelog map[string]Diff

type Diff

type Diff struct {
	From interface{} `json:"from"`
	To   interface{} `json:"to"`
}

Jump to

Keyboard shortcuts

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