I can't understand about "map", Could you explain me please?
понедельник, 28 ноября 2016 г., 18:35:54 UTC+2 пользователь Shawn Milochik
написал:
>
> The dates are just being appended without being checked for duplication:
>
> for userStats := range userStatsData.Dates {
>
Hi everybody. I need help. When outputting data to a csv file, the dates is
duplicated, but should merge and be counted. How to write correctly? Thanks.
package main
import (
"database/sql"
"log"
_"github.com/go-sql-driver/mysql"
"compress/zlib"
"bytes"
Hello everyone,
Please help me understand how use interfaces. I need that from a JSON rows
pulls the three parameters, count and unload data in CSV format with the
columns Date, Revenue, Gold.
package main
import (
"database/sql"
"log"
_"github.com/go-sql-driver/mysql"
I did my code, thanks all who help me. Next task, It is necessary then json
string pulls out three parameters, counted and discharged into a CSV format
with the columns Date, Revenue, Gold.
package main
import (
"database/sql"
"log"
_"github.com/go-sql-driver/mysql"
"compress/zlib"
"os"
Thanks so much all who help me, I appreciate it!
Ok, for example:
first row achieve:
xÚ –Ûjã0 E ¥èÙ.:GWûWJ 2 e ¦} ù÷êb7Ú;
yñòÖ> )º˜×Ÿoï?^ÿ ÿü5«Q+a {²yUY>Í6[k&ónÖ‹9ŸÍ*b Œ¶çòX þ›Õ?/Ëu Éò¼äB~›õåRŸm{
êÛ_=˜Ì¶ü¼¹N—ÏW]x „Ym
e data...
>
> Le jeudi 10 novembre 2016 18:33:10 UTC+1, Sergio Hunter a écrit :
>>
>> I agree with you) But what do i do with this, It's exactly the same error.
>>
>> четверг, 10 ноября 2016 г., 19:05:12 UTC+2 пользователь
>> pierre...@gmail.com написал:
>>>
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
>> exi
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:
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,