Re: [go-nuts] How to create unique IDs when ranging over data in Golang and use in Javascript

2017-03-08 Thread Rejoy Nair
wrote: > On Tue, 7 Mar 2017 15:42:11 +0530 > Rejoy Nair wrote: > > > Thanks a lot!. Your answers have been helpful. I was also provided > > with a very good solution from another forum that I 'll post that > > here for the benefit for anybody who '

Re: [go-nuts] How to create unique IDs when ranging over data in Golang and use in Javascript

2017-03-07 Thread Rejoy Nair
Thanks a lot!. Your answers have been helpful. I was also provided with a very good solution from another forum that I 'll post that here for the benefit for anybody who 'd come across this post. Its on the lines of what you 'd suggested. Till then I was actually beginning to think that this wasn'

Re: [go-nuts] Parse JSON in Template

2017-02-19 Thread Rejoy Nair
Yes, there could be ways to do it. I could have used Javascript to access the JSON data values. But couldn't get that to work either. So the easier thing for me to do was to unmarshal the string again into a map([string]interface{}) type which is what I finally did to get the code to work. Thanks f

Re: [go-nuts] Blabk values when trying to pass a slice to a struct field

2017-02-03 Thread Rejoy Nair
b 2017 17:48:18 +0530 > Rejoy Nair wrote: > > > > > I am trying to pass a slice of data to a struct field . The field > > > > has a type of another struct. I get blank values in the output. > > > > > > > > Here is the code: https://play.golang.

Re: [go-nuts] Blabk values when trying to pass a slice to a struct field

2017-02-03 Thread Rejoy Nair
Thanks!. thats what I was looking for. I had tried using the assignment Dt.P = Pr before the unmarshalling of the JSON to the variable pdata and it would not work. On Fri, Feb 3, 2017 at 5:18 PM, Konstantin Khomoutov < flatw...@users.sourceforge.net> wrote: > On Fri, 3 Feb 2017 03:32:00 -0800 (