Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Generate ¶
func (p *Plugin) Generate(file *generator.FileDescriptor)
Here is where all the work is done, this is called to generate the main guts of the code
func (*Plugin) GenerateImports ¶
func (p *Plugin) GenerateImports(file *generator.FileDescriptor)
Remember that this is called last, so that we can mark imports as used in Generate and then they get output here. So don't go adding things here that expect to be first
Click to show internal directories.
Click to hide internal directories.