Re: [go-nuts] Hi, someone may help me converting this python code to GO

2016-07-10 Thread Michael Jones
Dan, i was guessing that the code was specifying a 16 bit integer for the running crc. That's why i am curious. On Jul 10, 2016 2:42 PM, "Jesper Louis Andersen" < jesper.louis.ander...@gmail.com> wrote: > > On Sun, Jul 10, 2016 at 5:07 AM, wrote: > >> def

Re: [go-nuts] Hi, someone may help me converting this python code to GO

2016-07-10 Thread Jesper Louis Andersen
On Sun, Jul 10, 2016 at 5:07 AM, wrote: > def GetFormattedHex(intNum, lenOfHexString): > return format(intNum, "0" + str(lenOfHexString) + "x") > Where do you get stuck in the translation? It looks pretty straightforward. Build the table of constants, implement the loop in