Re: [go-nuts] Re: Golang Error - When marshelling data

2016-06-17 Thread Konstantin Khomoutov
On Fri, 17 Jun 2016 00:50:20 -0700 (PDT) User123 wrote: [...] > When i return http response from a function should i use > *func makeCalls() (string, error, *http.Response, error) * > or > *func makeCalls() (string, error, http.Response, error) * > > For the struct i created above what should b

Re: [go-nuts] Re: Golang Error - When marshelling data

2016-06-16 Thread Konstantin Khomoutov
On Thu, 16 Jun 2016 04:55:41 -0700 (PDT) User123 wrote: > Is it giving error since it has null values? > > I'm just not able to get it. Since this code works perfectly fine in > 1.4.2 A wild guess: 1) Your error message is: json: unsupported type: <-chan struct {} and indeed the doc