v0.3.0
Pre-release
Pre-release
Command goprotoc
- Fixes a panic error when using the
--plugin
command-line argument of thegoprotoc
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 theGoNames
type, for computing the name of the Go constant that represents an enum value. - Adds fields
ModuleRoot
andSourceRelative
to theGoNames
type, so that theOutputFilenameFor
function can mirror functionality in protoc-gen-go when givenmodule=...
orpaths=source_relative
plugin arguments.
Package "github.com/jhump/goprotoc/app/goprotoc"
- Adds a
RegisterPlugin
function, so that amain
package that invokes this logic (to embed goprotoc) can first register in-process plugin implementations (instead of all plugins shelling out to external programs).