-
Notifications
You must be signed in to change notification settings - Fork 42
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
Passing a map[string]someStruct through .Emit()/.Next() #122
Comments
Oh! Looking at another part of the codebase I noticed that the I think I've found the right investigation path: https://godoc.org/github.com/ipfs/go-ipfs-cmds#Command |
That sounds like the correct diagnosis. Really, we should be complaining loudly (logging? panicing? if |
Thanks for the confirmation. In this case its totally my fault, though. I was hacking away at an existing piece of code that already had the type specified as I plan to modify my code now so that it always emits a Does anything seem unreasonable about that? |
That sounds reasonable. |
(closing for tracking, feel free to continue discussing) |
Thanks. Sorry that I didn't close it myself. |
Np. I just like to close things before I forget about them for 3+ months 😄. |
Hi all, I'm trying to add a feature to IPFS, and a command is being run over HTTP.
I am passing a
theMap := map[string]someStruct{...}
through.Next(*theMap)
and I have confirmed its being sent over HTTP as a JSON object.However, in the client where I receive it with
.Next()
for some reason I'm only getting the first someStruct (not even the key) of the map.Am I using Emit/Next correctly? Should this work?
The text was updated successfully, but these errors were encountered: