import "github.com/gogo/protobuf/codec"
codec.go
type Codec interface { Marshal(v interface{}) ([]byte, error) Unmarshal(data []byte, v interface{}) error String() string }
func New(size int) Codec