I have noted that the intValue (and uintValue) Set method do the following:
v, err := strconv.ParseInt(s, 0, 64)
However this is incorrect on 32 bit systems:
https://play.golang.org/p/tvAUCI63x3
Can this be considered a bug?
Another, minor, issue is that:
*i = intValue(v)
return err
i is set to 0 in case of error, discarding the default value.
It is probably not an issue with the flag package, but probably should be
corrected.
Thanks
Manlio
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.