Thanks Tomás! now reading info about Marshal
El sábado, 2 de febrero de 2019, 20:24:36 (UTC-3), Tomás González Dowling
escribió:
>
> Not sure if that was a question, Juan. But you can use Marshal method in
> the encoding/json package to avoid using make. There are some examples in
> th
Not sure if that was a question, Juan. But you can use Marshal method in
the encoding/json package to avoid using make. There are some examples in
the official docs: https://golang.org/pkg/encoding/json/#example_Marshal
Hope that it helps :)
El mié., 19 dic. 2018 a las 9:44, Juan Mamani ()
escrib
Your code `make(pos, 1)` seems to be typo.
The fixed version works well.
https://play.golang.org/p/gnLe_Xi2-nb
2018年12月19日(水) 10:40 Juan Mamani :
> I'm not an expert but I do my best.
>
> Original json format required:
> { "pos": [{ "lp" : "WISE-12", "lat": "-33,43565400", "lon" :
> "-70,6055270
Thanks a lot for your reply!! You are right it's working.
But, it could be possible to avoid calling "make"...
El mié., 19 de dic. de 2018 a la(s) 08:14, Ozone Kawakami (
kawakami.oz...@gmail.com) escribió:
> Your code `make(pos, 1)` seems to be typo.
> The fixed version works well.
> https://p
I'm not an expert but I do my best.
Original json format required:
{ "pos": [{ "lp" : "WISE-12", "lat": "-33,43565400", "lon" :
"-70,60552700", "speed" : "102" }]
}
Json autogenerated from: https://mholt.github.io/json-to-go/ (lazy style
but it works. Even more when my boss is surrounding li