Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin interface { // Name identifies the plugin. Name() string // Version identifies the plugin version. Version() string // Init is called once before code generated. // The `file` will be ignore if return false. Init(file *protogen.File) bool // Generate produces the code generated by the plugin for this file, // except for the imports, by calling the generator's methods P, In, and Out. Generate(g *protogen.GeneratedFile) }
A Plugin provides functionality to add to the output during Go code generation, such as to produce RPC stubs.
Click to show internal directories.
Click to hide internal directories.