MCPcopy
hub / github.com/dgraph-io/dgraph / UidsToHex

Function UidsToHex

query/query.go:2833–2839  ·  view source on GitHub ↗

UidsToHex converts the new UIDs to hex string.

(m map[string]uint64)

Source from the content-addressed store, hash-verified

2831
2832// UidsToHex converts the new UIDs to hex string.
2833func UidsToHex(m map[string]uint64) map[string]string {
2834 res := make(map[string]string)
2835 for k, v := range m {
2836 res[k] = UidToHex(v)
2837 }
2838 return res
2839}
2840
2841func UidToHex(uid uint64) string {
2842 return fmt.Sprintf("%#x", uid)

Callers 1

doMutateMethod · 0.92

Calls 1

UidToHexFunction · 0.85

Tested by

no test coverage detected