Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() pkgenerator.Plugin
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin for implements pgkgenerator.Plugin
func (*Plugin) Generate ¶
func (p *Plugin) Generate(g *protogen.GeneratedFile)
Generate to generate codes for specified file. except for the imports, by calling the generator's methods P, In, and Out.
func (*Plugin) Init ¶
Init is called once before code generated. The `file` will be ignored if return false.
Click to show internal directories.
Click to hide internal directories.