Re: Best practice setup for Go driver development & identifying the websocket serialization format
John Helmsen <john....@...>
I don't think that you have a serialization problem here, but more of an idiosyncrasy of how gremgo works. I've used it a bit, and whenever gremgo returns a value, it returns it using an empty interface construction, or perhaps an array of empty interfaces: https://tour.golang.org/methods/14 The object -> string system in Go is actually quite smart, and unwraps your empty interface to a string when it prints out the answer. The format you are seeing is the result of this transformation. The empty interface is used as the return type, since all different types of data could be contained inside. You will have to write your own code to perform the unwrapping in order to work with the contained data. |
|