Documentation ¶
Index ¶
- func DiffMessagesJSON(one proto.Message, two proto.Message, name string) (string, error)
- func DiffMessagesText(one proto.Message, two proto.Message, name string) (string, error)
- func GetProtocFileDescriptorSet(ctx context.Context, roots []string, realFilePaths []string, ...) (_ *descriptor.FileDescriptorSet, retErr error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffMessagesJSON ¶
DiffMessagesJSON diffs the two Messages using jsonpb.
func DiffMessagesText ¶
DiffMessagesText diffs the two Messages using proto.MarshalText.
func GetProtocFileDescriptorSet ¶
func GetProtocFileDescriptorSet( ctx context.Context, roots []string, realFilePaths []string, includeImports bool, includeSourceInfo bool, ) (_ *descriptor.FileDescriptorSet, retErr error)
GetProtocFileDescriptorSet gets the validated FileDescriptorSet using protoc and the Well-Known Types on the current PATH.
Only use for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.