This code fails my tests with "panic: interface conversion: interface {} is int32, not int"
switch argKind { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect. Int64: i := uint64(arg.(int)) err = writer.write(b.ioWriter, unsafe.Pointer(&i)) case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: i := arg.(uint) err = writer.write(b.ioWriter, unsafe.Pointer(&i)) default: return fmt.Errorf("Unsupported type: %T\n", reflect.TypeOf(arg)) } -- 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.