(m map[string]interface{})
| 139 | } |
| 140 | |
| 141 | func sortJSONMap(m map[string]interface{}) uint64 { |
| 142 | var h uint64 |
| 143 | for _, k := range m { |
| 144 | // Because xor is commutative, it doesn't matter that map iteration |
| 145 | // is in random order. |
| 146 | h ^= sortJSON(k) |
| 147 | } |
| 148 | return h |
| 149 | } |
| 150 | |
| 151 | func sortJSONArray(a []interface{}) uint64 { |
| 152 | type arrayElement struct { |