Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteFiles ¶
func WriteFiles(outputDir string, files []GeneratedFile) error
WriteFiles formats each generated file with goimports and writes them to outputDir.
Types ¶
type GeneratedFile ¶
GeneratedFile represents a single generated output file.
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator executes templates against the IR to produce Go source files.
func (*Generator) Generate ¶
func (g *Generator) Generate() ([]GeneratedFile, error)
Generate executes all templates and returns the generated files.
Click to show internal directories.
Click to hide internal directories.