-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow other data types to export and import #16
base: master
Are you sure you want to change the base?
Conversation
ea45b53
to
f9d56b6
Compare
d491db4
to
e4a0b50
Compare
t.Fatal("Error: unsupported data type") | ||
} | ||
client.Write(data[i].path, m, "1") | ||
|
||
kv := client.Read(data[i].path) | ||
if kv[data[i].key] != data[i].value { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is reflect.DeepEqual
easier to use here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I think the same, json unmarshal code or reflection should be here, just wanted to finish this one really quick, but stuck on integration test
Thanks for this change. It's looking good so far. |
Oh hey, I'd completely forgotten about this. Thanks for putting in the work to get it upstreamed! |
Please take a look at my improvement of this fix MrZoidberg#1. Basically, the fix is not working for JSON values, so in my code I serialize such values as base64 json and then deserialize it back. |
credits to @KJTsanaktsidis
zendesk@b9c69e7