Versions in this module Expand all Collapse all v1 v1.12.1 May 6, 2022 Changes in this version + const KindEnum + const KindEnumValue + const KindExtension + const KindExtensionRange + const KindField + const KindImport + const KindMessage + const KindMethod + const KindOption + const KindPackage + const KindReservedName + const KindReservedRange + const KindService + type CommentType int + const CommentsAll + const CommentsDetached + const CommentsLeading + const CommentsNonDoc + const CommentsTokens + const CommentsTrailing + type Element interface + Extendee func() string + IsCustomOption func() bool + Kind func() ElementKind + Name func() string + Number func() int32 + NumberRange func() (int32, int32) + type ElementKind int + type Printer struct + Compact bool + CustomSortFunction func(a, b Element) bool + ForceFullyQualifiedNames bool + Indent string + MessageLiteralExpansionThresholdLength int + OmitComments CommentType + OmitDetachedComments bool + PreferMultiLineStyleComments bool + ShortOptionsExpansionThresholdCount int + ShortOptionsExpansionThresholdLength int + SortElements bool + TrailingCommentsOnSeparateLine bool + func (p *Printer) PrintProtoFile(fd *desc.FileDescriptor, out io.Writer) error + func (p *Printer) PrintProtoFiles(fds []*desc.FileDescriptor, open func(name string) (io.WriteCloser, error)) error + func (p *Printer) PrintProtoToString(dsc desc.Descriptor) (string, error) + func (p *Printer) PrintProtosToFileSystem(fds []*desc.FileDescriptor, rootDir string) error v1.12.0-itenebris May 6, 2022