Repository navigation
v1.1.0
This version includes several enhancements to the "github.com/jhump/protoreflect/desc/protoprint" package.
Changes/fixes:
- Trailing comments will be rendered on the same line as element in many cases.
- Fixed issue with errant comments showing up before and after
extend ...blocks. - Changed canonical ordering of elements when
Printer.SortElementsis true: options now show up after the package and import statements.
Additions:
- The
protoprint.Printertype has a new method that allows printing any kind of descriptor to a string, not just files. - There are several new options on
protoprint.Printerwhich provide more control over how comments, type references, and whitespace get printed.
Deprecations:
- The
OmitDetachedCommentsfield ofprotoprint.Printerhas been deprecated in favor of a new field that provides more control over what comments are included in the printed output.