Documentation ¶
Overview ¶
Package generator generates Go code from Protocol Buffers definitions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate( ver string, req *pluginpb.CodeGeneratorRequest, ) *pluginpb.CodeGeneratorResponse
Generate generates Go code for the given request.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package accessor generates an accessor method for each field in a message that is a member of a "one-of group".
|
Package accessor generates an accessor method for each field in a message that is a member of a "one-of group". |
Package builder generates a fluent builder type for each message type.
|
Package builder generates a fluent builder type for each message type. |
Package exhaustiveswitch generates functions that perform an exhaustive switch over finite set types such as "one-of groups" and enumerations.
|
Package exhaustiveswitch generates functions that perform an exhaustive switch over finite set types such as "one-of groups" and enumerations. |
Package grpcstub generates stub implementations of gRPC client interfaces.
|
Package grpcstub generates stub implementations of gRPC client interfaces. |
internal
|
|
scope
Package scope provides a set of code-generator-friendly types describing the heirarchy of definitions within a generation request.
|
Package scope provides a set of code-generator-friendly types describing the heirarchy of definitions within a generation request. |
Package mutator generates a mutator method for each field in a message.
|
Package mutator generates a mutator method for each field in a message. |
Click to show internal directories.
Click to hide internal directories.