Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

avoidik
Copy link

@avoidik avoidik commented May 26, 2020

@avoidik avoidik force-pushed the feature/allow-other-types branch from ea45b53 to f9d56b6 Compare May 26, 2020 13:03
@avoidik avoidik force-pushed the feature/allow-other-types branch from d491db4 to e4a0b50 Compare May 28, 2020 15:36
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 {
Copy link
Owner

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?

Copy link
Author

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

@adamdecaf
Copy link
Owner

Thanks for this change. It's looking good so far.

@KJTsanaktsidis
Copy link

Oh hey, I'd completely forgotten about this. Thanks for putting in the work to get it upstreamed!

@MrZoidberg
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants