saving development state...

This commit is contained in:
Jae Kwon
2014-08-30 04:17:10 -07:00
parent 50544c50af
commit d300a67bb1
46 changed files with 2458 additions and 1058 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import "bytes"
type ByteSlice []byte
func (self ByteSlice) Equals(other Binary) bool {
func (self ByteSlice) Equals(other interface{}) bool {
if o, ok := other.(ByteSlice); ok {
return bytes.Equal(self, o)
} else {
@@ -13,7 +13,7 @@ func (self ByteSlice) Equals(other Binary) bool {
}
}
func (self ByteSlice) Less(other Binary) bool {
func (self ByteSlice) Less(other interface{}) bool {
if o, ok := other.(ByteSlice); ok {
return bytes.Compare(self, o) < 0 // -1 if a < b
} else {