Skip to content

v0.3.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jhump jhump released this 20 Nov 03:10
· 3 commits to master since this release
8e9b279

Command goprotoc

  • Fixes a panic error when using the --plugin command-line argument of the goprotoc command.
  • Allows parsing of proto sources to report many/all errors encountered instead of failing first after one error.

Package "github.com/jhump/goprotoc/plugins"

  • No longer imports "github.com/golang/protobuf/protoc-gen-go/generator", which eliminates warning spam (with deprecation notices) from newer versions of this package.
  • Adds method GoNameOfEnumVal to the GoNames type, for computing the name of the Go constant that represents an enum value.
  • Adds fields ModuleRoot and SourceRelative to the GoNames type, so that the OutputFilenameFor function can mirror functionality in protoc-gen-go when given module=... or paths=source_relative plugin arguments.

Package "github.com/jhump/goprotoc/app/goprotoc"

  • Adds a RegisterPlugin function, so that a main package that invokes this logic (to embed goprotoc) can first register in-process plugin implementations (instead of all plugins shelling out to external programs).