MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / sortJSONMap

Function sortJSONMap

dgraphapi/json.go:141–149  ·  view source on GitHub ↗
(m map[string]interface{})

Source from the content-addressed store, hash-verified

139}
140
141func 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
151func sortJSONArray(a []interface{}) uint64 {
152 type arrayElement struct {

Callers 1

sortJSONFunction · 0.70

Calls 1

sortJSONFunction · 0.70

Tested by

no test coverage detected