protoc-gen-go
commandThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
protoc-gen-go is a plugin for the Google protocol buffer compiler to generateGo code. Install it by building this program and making it accessible withinyour 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¶
| Path | Synopsis |
|---|---|
Package generator is deprecated. | Package generator is deprecated. |
internal/remap Package remap handles tracking the locations of Go tokens in a source text across a rewrite by the Go formatter. | Package remap handles tracking the locations of Go tokens in a source text across a rewrite by the Go formatter. |
Package grpc is deprecated. | Package grpc is deprecated. |