Versions in this module Expand all Collapse all v1 v1.0.0 Sep 2, 2020 Changes in this version + type BaseGenerator struct + func NewBaseGenerator(markerName string) *BaseGenerator + func (g *BaseGenerator) MarkerName() string + type DirectoryInput struct + func NewDirectoryInput(path string) *DirectoryInput + func (f *DirectoryInput) Read() ([]*ast.File, error) + type FileInput struct + func NewFileInput(path string) *FileInput + func (f *FileInput) Read() ([]*ast.File, error) + type FileOutput struct + DestinationPath string + func NewFileOutput(destinationPath string) *FileOutput + func (f *FileOutput) Write(j *jen.File) error + type Generator interface + Generate func(marker Marker, typeName string, j *jen.File) error + MarkerName func() string + type Genie struct + func NewGenie(input Input, output Output, pkg string, generators ...Generator) *Genie + func (g *Genie) Generate() error + func (g *Genie) WithGenerator(generators ...Generator) *Genie + func (g *Genie) WithPrefix(p string) *Genie + type Input interface + Read func() ([]*ast.File, error) + type Marker struct + Args string + Name string + type Output interface + Write func(j *jen.File) error