Documentation
¶
Overview ¶
Package jsondiff provides comparing for json maps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
Diff compare two jsons map and returns the fields names that has been changed. If input maps are equal, all return values will be empty.
func DiffWithValues ¶
func DiffWithValues(firstJson map[string]interface{}, secondJson map[string]interface{}) (diff []string, firstValues map[string]interface{}, secondValues map[string]interface{})
DiffWithValues compare two jsons map and returns the fields names and values that has been changed. If input maps are equal, all return values will be empty. Otherwise diff slice will contain the field names list, those field names will also be present in FirstValues and SecondValues combined with their respective values from firstJson and secondJson.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.