[go-nuts] Re: Receiving results from a database

2016-11-23 Thread Ondrej
And in case you want to actually marshal it into a struct, I recommend giving JSON to Go a... go. On Tuesday, 22 November 2016 20:48:49 UTC, vanmuld...@gmail.com wrote: > > I just started leaning Go and I've been stuck on this for a couple of days > > Running on an App Engine dev server > > >

[go-nuts] Re: Receiving results from a database

2016-11-22 Thread Tamás Gulácsi
First of all, please NEVER ignore the returned errors! Then, print out "doc" to be sure. In the concrete case, let Results be []json.RawMessage, or simply marshal into a map[string]interface{}. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.