protoc-go-launcher
Launcher of protoc & grpc Go code generator.
Handles downloading protoc and Go protoc plugins automatically.
Installation
go install github.com/MartinRobomaze/protoc-go-launcher@latest
Usage
Command usage:
protoc-go-launcher --protoc_version <VERSION> PROTOC_COMMANDS
Example with protobuf spec in file helloworld/helloworld.proto:
protoc-go-launcher --protoc_version 32.0 \
--go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
helloworld/helloworld.proto