pomack/thrift4go — pull request #9 by carloscm (2012-02-25 21:58:21+00:00)
Title: Use reflect.DeepEqual when comparing interface{} for better handling of slices

The recent changes for BINARY fields make usable some more Cassandra APIs, but I've found a small glitch in the Compare() function for thrift types. It tries to compare interfaces straight on, which will work for most of the native backing Go types, but not for the BINARY case, which has to be backed by a []byte ([]uint8) slice to work correctly.

This patch changes the == with calls to reflect.DeepEqual which is able to compare slices.