wip: fixing key order

This commit is contained in:
Mike Farah
2025-07-22 10:50:52 +10:00
parent 84b095bbc4
commit 3018396ed2
4 changed files with 624 additions and 117 deletions
+11
View File
@@ -28,6 +28,17 @@ func GetLogger() *logging.Logger {
return log
}
func getContentValueByKey(content []*CandidateNode, key string) *CandidateNode {
for index := 0; index < len(content); index = index + 2 {
keyNode := content[index]
valueNode := content[index+1]
if keyNode.Value == key {
return valueNode
}
}
return nil
}
func recurseNodeArrayEqual(lhs *CandidateNode, rhs *CandidateNode) bool {
if len(lhs.Content) != len(rhs.Content) {
return false