refactor out binary

This commit is contained in:
Jae Kwon
2014-06-04 01:39:50 -07:00
parent 15f8441068
commit 1c4f5e2506
8 changed files with 68 additions and 38 deletions

9
binary/binary.go Normal file
View File

@ -0,0 +1,9 @@
package binary
import "io"
type Binary interface {
ByteSize() int
WriteTo(io.Writer) (int64, error)
Equals(Binary) bool
}