src/client/pkg/pbutil/pbutil.go
func (r *readWriter) Read(val proto.Message) error {
	buf, err := r.ReadBytes()
	if err != nil {
		return err
	}
	return proto.Unmarshal(buf, val)
}
func (r *readWriter) Read(val proto.Message) error {
	buf, err := r.ReadBytes()
	if err != nil {
		return err
	}
	return proto.Unmarshal(buf, val)
}
// Read reads val from r.