You can try binary.Size but you'll also run into the same problem: int's size is platform specific (binary.Size returns -1 for ints). As the go faq states "For portability, code that relies on a particular size of value should use an explicitly sized type, like int64."
-- 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.