RE: [go-nuts] Converting uint to string

2017-11-05 Thread John Souvestre
You could also just the integers themselves as keys. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Chun Zhang Sent: 2017 November 05, Sun 15:09 To: golang-nuts Subject: [go-nuts] Converting uint to string

Re: [go-nuts] Converting uint to string

2017-11-05 Thread Chun Zhang
Hi, Jan, Thank you very much!! Best, Chun On Sunday, November 5, 2017 at 4:17:43 PM UTC-5, Jan Mercl wrote: > > On Sun, Nov 5, 2017 at 10:09 PM Chun Zhang > wrote: > > > I have a group of integers ranging from 1 to 2^32 that are in the format > of uint32. > > Assuming you mean 'to 2^32-1'. >

Re: [go-nuts] Converting uint to string

2017-11-05 Thread Jan Mercl
On Sun, Nov 5, 2017 at 10:09 PM Chun Zhang wrote: > I have a group of integers ranging from 1 to 2^32 that are in the format of uint32. Assuming you mean 'to 2^32-1'. > However, I am wondering if I use string(i) only, will I get any two numbers the same string representation? My guess is no, bu

[go-nuts] Converting uint to string

2017-11-05 Thread Chun Zhang
Hi, All, I have a group of integers ranging from 1 to 2^32 that are in the format of uint32. I know strconv.Itoa(i) or strconv.FormatUint(i) can definitely give unique representation of each number. So, I can use it as the index of a map[string]interface{}. However, I am wondering if I use st