// uint64FromKeyspaceId returns a 64 bits hex number as a string // (in the form of 0x0123456789abcdef) from the provided keyspaceId func uint64FromKeyspaceId(keyspaceId key.KeyspaceId) string { hex := string(keyspaceId.Hex()) return "0x" + hex + strings.Repeat("0", 16-len(hex)) }