Skip to content

v0.3.0

Compare
Choose a tag to compare
@ydnar ydnar released this 04 Jan 21:33
· 194 commits to main since this release
07a8b89

Added

  • #37: new file-level go.lint option. When specified, protoc-gen-go-patch will attempt to fix generated Go names to their idiomatic equivalents, e.g. IdID, UrlURL, etc. It will also eliminate stutter from enum values, e.g. Foo_FOO_UNKNOWNFooUnknown. Thanks to @Green7 for the initial implementation in #22.
  • File-level (go.lint).initialisms option to specify your own initialisms for go.lint. Example: (go.lint).initialisms = 'RGB'; // Lints RgbColor to RGBColor. You may specify as many custom initialisms as needed. They will only affect identifiers declared in that file.

Fixed

  • Enum values nested under renamed messages will now be correctly renamed.