Protocol Buffers Data Type Go Code Generation: Difference between revisions
Jump to navigation
Jump to search
m (Ovidiu moved page Protocol Buffers Data Type Code Generation to Protocol Buffers Data Type Go Code Generation without leaving a redirect) |
|||
Line 9: | Line 9: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
</syntaxhighlight> | |||
=Installation= | |||
The generic compiler must be installed with <font color=darkkhaki>TODO</font>. | |||
To generate Go code, the Go plugin must be installed with: | |||
<syntaxhighlight lang='bash'> | |||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 15:54, 7 May 2024
External
https://protobuf.dev/reference/go/go-generated
Internal
Overview
The code that supports the data types defined in the .proto
files are generated as follows:
Installation
The generic compiler must be installed with TODO.
To generate Go code, the Go plugin must be installed with:
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest