On Sun, Jul 2, 2017 at 4:34 PM, Sam Whited <s...@samwhited.com> wrote: > This means that the code you pasted is the same as if you'd written: > > type ByteSize float64 > > const ( > _ = 0 // ignore first value by assigning to blank identifier > KB ByteSize = 1 << (10 * 1) > MB = 1 << (10 * 2) > GB = 1 << (10 * 3) > )
*sigh* I really can't send an email to this list without finding a mistake as soon as I've sent it despite having checked half a dozen times. That should be: > const ( > _ = 0 // ignore first value by assigning to blank identifier > KB ByteSize = 1 << (10 * 1) > MB ByteSize = 1 << (10 * 2) > GB ByteSize = 1 << (10 * 3) > ) —Sam -- 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.