Deprecated: Use the "google.golang.org/protobuf" module instead.

protoc-gen-go command

protoc-gen-go is a plugin for the Google protocol buffer compiler to generate Go code. Install it by building this program and making it accessible within your PATH with the name:

protoc-gen-go

The 'go' suffix becomes part of the argument for the protocol compiler, such that it can be invoked as:

protoc --go_out=paths=source_relative:. path/to/file.proto

This generates Go bindings for the protocol buffer defined by file.proto. With that input, the output will be written to:

path/to/file.pb.go

See the README and documentation for protocol buffers to learn more:

https://developers.google.com/protocol-buffers/

Directories

PathSynopsis
protoc-gen-go/descriptor
protoc-gen-go/generatorPackage generator is deprecated.
protoc-gen-go/generator/internal
protoc-gen-go/grpcPackage grpc is deprecated.
protoc-gen-go/plugin
Version
v1.5.4 (latest)
Published
Mar 6, 2024
Platform
linux/amd64
Imports
6 packages
Last checked
5 days ago

Tools for package owners.