If your field names match the JSON field names, you don't have to 
explicitly tag them.

On Monday, September 18, 2017 at 6:10:46 AM UTC-7, Anil wrote:
>
> Thanks alot!!
>
> On Monday, 18 September 2017 18:38:49 UTC+5:30, Shawn Milochik wrote:
>>
>> Your struct has all unexported fields. So the json package can't see 
>> them. You have to capitalize the field names. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to