Documentation ¶
Overview ¶
Package gogocompat is a compatibility shim for GoGo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtoRegistry ¶
func ProtoRegistry() unstableProtoRegistry
ProtoRegistry returns a Protobuf message registry that falls back to GoGo.
To support types that might differ between Protobuf and GoGo registrations, the special prefix "gogo:" can be used to skip looking up messages in the standard Protobuf registry.
pb = proto.package("google.protobuf") gogo_pb = proto.package("gogo:google.protobuf") # pb.Timestamp and gogo_pb.Timestamp are distinct types.
The exact type of the return value is not yet stabilized, but the result is guaranteed to be accepted by the skycfg.WithProtoRegistry() load option.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.