Documentation
¶
Index ¶
- func CopyMap(m map[string]string) map[string]string
- func GetDifferenceBetweenStrings(a, b string) string
- func GetHomeDirectory() (string, error)
- func Int32Ptr(i int32) *int32
- func MergeMaps(a, b map[string]string) map[string]string
- func OrderJsonFields(jsonStr string) (string, error)
- type ComparisonResult
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.