Source File
deprecated.go
Belonging Package
github.com/golang/protobuf/proto
package proto
import (
protoV2
)
ErrTooLarge = errors.New("proto: message encodes to over 2 GB")
ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof")
)
type InternalMessageInfo struct{}
func (*InternalMessageInfo) ( Message) {
DiscardUnknown()
}
func (*InternalMessageInfo) ( []byte, Message, bool) ([]byte, error) {
return protoV2.MarshalOptions{Deterministic: }.MarshalAppend(, MessageV2())
}
func (*InternalMessageInfo) ( Message, []byte) error {
return protoV2.UnmarshalOptions{Merge: true}.Unmarshal(, MessageV2())
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |