We will get there but is is hard hitting your target when shooting in the 
dark :).

Remove white spaces:
https://play.golang.org/p/_LktUPDhYW

Le jeudi 10 novembre 2016 17:52:21 UTC+1, Sergio Hunter a écrit :
>
> Thanks for your help. 
> Do you know what it means? 
> 2016/11/10 18:46:21 invalid character '\u0085' looking for beginning of 
> value
> exit status 1
>
>
> четверг, 10 ноября 2016 г., 18:32:40 UTC+2 пользователь 
> pierre...@gmail.com написал:
>>
>> Sorry, I did not test it. This one passes the playground build (up to the 
>> mysql driver not being found):
>> https://play.golang.org/p/_WfTMOd-s6
>>
>> Le jeudi 10 novembre 2016 17:13:19 UTC+1, Sergio Hunter a écrit :
>>>
>>> The compiler generates an error
>>>
>>> Test.go:71: undefined: o
>>> Test.go:85: cannot use nil as type Object in return argument
>>>
>>>
>>>
>>>
>>>
>>> четверг, 10 ноября 2016 г., 17:56:58 UTC+2 пользователь 
>>> pierre...@gmail.com написал:
>>>>
>>>> Ok, then something along those lines:
>>>> https://play.golang.org/p/dMPQIrEdNN
>>>>
>>>> Le jeudi 10 novembre 2016 16:36:21 UTC+1, Sergio Hunter a écrit :
>>>>>
>>>>> Thanks so much for your answer. 
>>>>> I'll try to explain what I need. I have a field "data",inside field 
>>>>> has compress rows and text data(json), I need decompress data, but my 
>>>>> code 
>>>>> begins to unpack the file to text and compiler generates an error.
>>>>> The logic is this: It reads "data" of the database, do 
>>>>> "json.NewDecoder", if "json.NewDecoder" did not work - will "err", then 
>>>>> if 
>>>>> there are "err" is necessary to decompress and do again 
>>>>> "json.NewDecoder". 
>>>>> I hope you are understand me, thanks.
>>>>>
>>>>> четверг, 10 ноября 2016 г., 13:03:28 UTC+2 пользователь Simon Ritchie 
>>>>> написал:
>>>>>>
>>>>>> I'm also not sure what you are trying to do.  However, I think I can 
>>>>>> see a bug in your code.
>>>>>>
>>>>>> First you run a database query to get a list of values from a field 
>>>>>> called data.  This could produce up to 10 values.
>>>>>>
>>>>>> Next you have a loop which runs through the values and discards them. 
>>>>>>  At the end of the loop, you have the data field from the last record, 
>>>>>> and 
>>>>>> you have thrown away all the others.  Is this what you want?
>>>>>>
>>>>>> Finally, you unzip the last data field.
>>>>>>
>>>>>> So if your table contains 100 records, you will get 10 of them, throw 
>>>>>> away the first 9 records and unzip the data from the last one.
>>>>>>
>>>>>> I hope this helps.
>>>>>>
>>>>>>

-- 
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