AW: [go-nuts] Question about int inside json

2018-04-29 Thread Lutz Horn
Use `int64` instad of `int`. https://play.golang.com/p/j10cDz7z-N0 Von: golang-nuts@googlegroups.com im Auftrag von pick...@kamelos.org Gesendet: Samstag, 28. April 2018 20:04 An: golang-nuts Betreff: [go-nuts] Question about int inside json Hallo

Re: [go-nuts] Question about int inside json

2018-04-29 Thread Jan Mercl
On Sun, Apr 29, 2018 at 5:52 AM wrote: > Almost every documentation I've found says int is 32 bit long, so that I expect a range from -2.147.483.648 to 2.147.483.647. Can you please share an example of such incorrect documentation? -- -j -- You received this message because you are subscrib

Re: [go-nuts] Question about int inside json

2018-04-28 Thread Burak Serdar
On Sat, Apr 28, 2018 at 12:04 PM, wrote: > > Hallo all, > > I've a "stupid" question about the type "int" when used inside json. > Almost every documentation I've found says int is 32 bit long, so that I > expect a range from -2.147.483.648 to 2.147.483.647. int is 32 bits in 32-bit systems, and

[go-nuts] Question about int inside json

2018-04-28 Thread pickard
Hallo all, I've a "stupid" question about the type "int" when used inside json. Almost every documentation I've found says int is 32 bit long, so that I expect a range from -2.147.483.648 to 2.147.483.647. So I "mistakely" did that: type Comment struct { IDint `json:"id"` U