Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHomeDirectory ¶
func OrderJsonFields ¶
Types ¶
type ComparisonResult ¶
func CompareJsonStrings ¶
func CompareJsonStrings( actualJson string, expectedJson string, threshold float64, ) (ComparisonResult, error)
Compare two JSON strings by ordering the fields alphabetically and then comparing the strings using the Jaro-Winkler algorithm to compute a score. If the score is greater than the threshold, return true.
Click to show internal directories.
Click to hide internal directories.