you're right, thanks
I still have to improve this code and keep learning GO
On Sunday, July 10, 2016 at 11:38:33 PM UTC-5, kortschak wrote:
>
> It's worth returning the error from strconv.ParseUint in the general
> case.
>
> On Sun, 2016-07-10 at 21:02 -0700, eav...@gmail.com wrote:
> > Than
It's worth returning the error from strconv.ParseUint in the general
case.
On Sun, 2016-07-10 at 21:02 -0700, eavi...@gmail.com wrote:
> Thanks every one
>
> finally did it
>
> https://play.golang.org/p/20KzDE_u2a
>
--
You received this message because you are subscribed to the Google Group
Thanks every one
finally did it
https://play.golang.org/p/20KzDE_u2a
-
On Saturday, July 9, 2016 at 11:04:01 PM UTC-5, eav...@gmail.com wrote:
>
> def GetCrc16(strHexData):
> crc16tab = (
> 0x, 0x1189, 0x2312, 0x329B, 0x4624, 0x57AD, 0x6536, 0x74BF,
> 0x8C48, 0x9DC1
On Sun, 2016-07-10 at 15:34 -0700, eavi...@gmail.com wrote:
> 1) it not return exactly what return the code in python
The code I have on the playground gives the same return as your python
code.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
T
You are doing way too much work. Use the features of the language.
When you say `fcs, _ := strconv.ParseUint("", base, size)`, why not
just `fcs := uint16(0x)`. Make your integer types in Crc16 uint16
since that is what you are working with.
On Sun, 2016-07-10 at 15:34 -0700, eavi...@gmai
I will say that your shifting operations are no both what might be
expected. Maybe that’s why you have problems.
From: on behalf of
Date: Sunday, July 10, 2016 at 11:34 PM
To: golang-nuts
Cc:
Subject: [go-nuts] Re: Hi, someone may help me converting this python code to GO
sorry, I shou
sorry, I should not ask for all the work
this is the code in GO, and I have two problems
1) it not return exactly what return the code in python
2) I have problem converting this line << return format(intNum, "0" +
str(lenOfHexString) + "x") >>
package main
import (
"fmt"
"strcon
Not here.
On Sun, 2016-07-10 at 10:04 +0100, Michael Jones wrote:
> I get “030a1x” as the result of my Go port. Is that what you expected?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails
I get “030a1x” as the result of my Go port. Is that what you expected?
—— Michael Jones michael.jo...@gmail.com
On Sun, Jul 10, 2016 at 6:10 AM, Kevin Powick wrote:
Glad to see you put some effort into it yourself.
--
You received this message because you are subscribed to the Google Groups
"go
Glad to see you put some effort into it yourself.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visi
10 matches
Mail list logo