Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareXmlStrings ¶
Compares two XML strings.
- sample1 - first XML string
- sample2 - second XML string
- stopOnFirst - stop comparison on the first difference
Returns: A list of detected discrepancies as strings
func CompareXmlStringsEx ¶
func CompareXmlStringsEx(sample1 string, sample2 string, stopOnFirst bool, ignoredDiscrepancies []string) []string
Compares two XML strings.
- sample1 - first XML string
- sample2 - second XML string
- stopOnFirst - stop comparison on the first difference
- ignoredDiscrepancies - list of regular expressions for ignored discrepancies
Returns: A list of detected discrepancies as strings
Types ¶
type DiffRecorder ¶
type DiffRecorder interface { // List of differences GetDiffs() []XmlDiff // List of serialized differences GetMessages() []string }
Provides diocreapncies while walking the trees in raw and string formats.
func ComputeDifferences ¶ added in v0.1.0
func ComputeDifferences(sample1 string, sample2 string, stopOnFirst bool, ignoredDiscrepancies []string) DiffRecorder
Compares two XML strings.
- sample1 - first XML string
- sample2 - second XML string
- stopOnFirst - stop comparison on the first difference
- ignoredDiscrepancies - list of regular expressions for ignored discrepancies
Returns: A list of detected discrepancies
Click to show internal directories.
Click to hide internal directories.