Sizeof does exist in the unsafe package and returns a compile time constant.
On Tue, Feb 21, 2017, 13:56 Manlio Perillo <manlio.peri...@gmail.com> wrote: > Il giorno martedì 21 febbraio 2017 22:14:38 UTC+1, Ian Lance Taylor ha > scritto: > > On Tue, Feb 21, 2017 at 9:51 AM, Manlio Perillo > <manlio....@gmail.com> wrote: > > 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? > > Yes, I think so. > > > Done, thanks > > https://github.com/golang/go/issues/19230 > > By the way, a sizeof builtin function would be useful to have. > > > 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 golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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, visit https://groups.google.com/d/optout.