implement key read/writers using io.Read/io.Write
This commit is contained in:
10
codec/codec.go
Normal file
10
codec/codec.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package codec
|
||||
|
||||
import (
|
||||
"io"
|
||||
)
|
||||
|
||||
type I interface {
|
||||
MarshalBinary(w io.Writer)
|
||||
UnmarshalBinary(r io.Reader) (err error)
|
||||
}
|
||||
Reference in New Issue
Block a user