UidsToHex converts the new UIDs to hex string.
(m map[string]uint64)
| 2831 | |
| 2832 | // UidsToHex converts the new UIDs to hex string. |
| 2833 | func 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 | |
| 2841 | func UidToHex(uid uint64) string { |
| 2842 | return fmt.Sprintf("%#x", uid) |